OLD | NEW |
1 // ISO C9x compliant inttypes.h for Microsoft Visual Studio | 1 // ISO C9x compliant inttypes.h for Microsoft Visual Studio |
2 // Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124 | 2 // Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124 |
3 // | 3 // |
4 // Copyright (c) 2006 Alexander Chemeris | 4 // Copyright (c) 2006 Alexander Chemeris |
5 // | 5 // |
6 // Redistribution and use in source and binary forms, with or without | 6 // Redistribution and use in source and binary forms, with or without |
7 // modification, are permitted provided that the following conditions are met: | 7 // modification, are permitted provided that the following conditions are met: |
8 // | 8 // |
9 // 1. Redistributions of source code must retain the above copyright notice, | 9 // 1. Redistributions of source code must retain the above copyright notice, |
10 // this list of conditions and the following disclaimer. | 10 // this list of conditions and the following disclaimer. |
(...skipping 14 matching lines...) Expand all Loading... |
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 // | 29 // |
30 /////////////////////////////////////////////////////////////////////////////// | 30 /////////////////////////////////////////////////////////////////////////////// |
31 | 31 |
32 #ifndef INTTYPES_WIN32_H | 32 #ifndef INTTYPES_WIN32_H |
33 #define INTTYPES_WIN32_H | 33 #define INTTYPES_WIN32_H |
34 | 34 |
| 35 #include "wtf/Platform.h" |
| 36 |
35 #if !COMPILER(MSVC) | 37 #if !COMPILER(MSVC) |
36 #error "This inttypes.h file should only be compiled with MSVC" | 38 #error "This inttypes.h file should only be compiled with MSVC" |
37 #endif | 39 #endif |
38 | 40 |
39 #if _MSC_VER > 1000 | 41 #if _MSC_VER > 1000 |
40 #pragma once | 42 #pragma once |
41 #endif | 43 #endif |
42 | 44 |
43 #include "stdint.h" | 45 #include "stdint.h" |
44 | 46 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 #else | 252 #else |
251 # define SCNoPTR "lo" | 253 # define SCNoPTR "lo" |
252 # define SCNuPTR "lu" | 254 # define SCNuPTR "lu" |
253 # define SCNxPTR "lx" | 255 # define SCNxPTR "lx" |
254 # define SCNXPTR "lX" | 256 # define SCNXPTR "lX" |
255 #endif | 257 #endif |
256 | 258 |
257 #endif | 259 #endif |
258 | 260 |
259 #endif | 261 #endif |
OLD | NEW |