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 | |
37 #if !COMPILER(MSVC) | 35 #if !COMPILER(MSVC) |
38 #error "This inttypes.h file should only be compiled with MSVC" | 36 #error "This inttypes.h file should only be compiled with MSVC" |
39 #endif | 37 #endif |
40 | 38 |
41 #if _MSC_VER > 1000 | 39 #if _MSC_VER > 1000 |
42 #pragma once | 40 #pragma once |
43 #endif | 41 #endif |
44 | 42 |
45 #include "stdint.h" | 43 #include "stdint.h" |
46 | 44 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 #else | 250 #else |
253 # define SCNoPTR "lo" | 251 # define SCNoPTR "lo" |
254 # define SCNuPTR "lu" | 252 # define SCNuPTR "lu" |
255 # define SCNxPTR "lx" | 253 # define SCNxPTR "lx" |
256 # define SCNXPTR "lX" | 254 # define SCNXPTR "lX" |
257 #endif | 255 #endif |
258 | 256 |
259 #endif | 257 #endif |
260 | 258 |
261 #endif | 259 #endif |
OLD | NEW |