Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Side by Side Diff: Source/wtf/os-win32/stdint.h

Issue 23187004: Do not include "wtf/Platform.h" directly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix win_x64 build Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/wtf/os-win32/inttypes.h ('k') | Source/wtf/tests/RunAllTests.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006 Apple Computer, Inc. 2 * Copyright (C) 2005, 2006 Apple Computer, Inc.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details. 12 * Library General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Library General Public License 14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to 15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
18 * 18 *
19 */ 19 */
20 20
21 #ifndef STDINT_WIN32_H 21 #ifndef STDINT_WIN32_H
22 #define STDINT_WIN32_H 22 #define STDINT_WIN32_H
23 23
24 #include "wtf/Platform.h"
25
26 /* This file emulates enough of stdint.h on Windows to make JavaScriptCore and W ebCore 24 /* This file emulates enough of stdint.h on Windows to make JavaScriptCore and W ebCore
27 compile using MSVC which does not ship with the stdint.h header. */ 25 compile using MSVC which does not ship with the stdint.h header. */
28 26
29 #if !COMPILER(MSVC) 27 #if !COMPILER(MSVC)
30 #error "This stdint.h file should only be compiled with MSVC" 28 #error "This stdint.h file should only be compiled with MSVC"
31 #endif 29 #endif
32 30
33 #include <limits.h> 31 #include <limits.h>
34 32
35 typedef unsigned char uint8_t; 33 typedef unsigned char uint8_t;
(...skipping 22 matching lines...) Expand all
58 CASSERT(sizeof(int8_t) == 1, int8_t_is_one_byte) 56 CASSERT(sizeof(int8_t) == 1, int8_t_is_one_byte)
59 CASSERT(sizeof(uint8_t) == 1, uint8_t_is_one_byte) 57 CASSERT(sizeof(uint8_t) == 1, uint8_t_is_one_byte)
60 CASSERT(sizeof(int16_t) == 2, int16_t_is_two_bytes) 58 CASSERT(sizeof(int16_t) == 2, int16_t_is_two_bytes)
61 CASSERT(sizeof(uint16_t) == 2, uint16_t_is_two_bytes) 59 CASSERT(sizeof(uint16_t) == 2, uint16_t_is_two_bytes)
62 CASSERT(sizeof(int32_t) == 4, int32_t_is_four_bytes) 60 CASSERT(sizeof(int32_t) == 4, int32_t_is_four_bytes)
63 CASSERT(sizeof(uint32_t) == 4, uint32_t_is_four_bytes) 61 CASSERT(sizeof(uint32_t) == 4, uint32_t_is_four_bytes)
64 CASSERT(sizeof(int64_t) == 8, int64_t_is_eight_bytes) 62 CASSERT(sizeof(int64_t) == 8, int64_t_is_eight_bytes)
65 CASSERT(sizeof(uint64_t) == 8, uint64_t_is_eight_bytes) 63 CASSERT(sizeof(uint64_t) == 8, uint64_t_is_eight_bytes)
66 64
67 #endif 65 #endif
OLDNEW
« no previous file with comments | « Source/wtf/os-win32/inttypes.h ('k') | Source/wtf/tests/RunAllTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698