1 /*===---- inttypes.h - Standard header for integer printf macros ----------===*\
3 * Permission is hereby granted, free of charge, to any person obtaining a copy
4 * of this software and associated documentation files (the "Software"), to deal
5 * in the Software without restriction, including without limitation the rights
6 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 * copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions:
10 * The above copyright notice and this permission notice shall be included in
11 * all copies or substantial portions of the Software.
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 \*===----------------------------------------------------------------------===*/
23 #ifndef __CLANG_INTTYPES_H
24 #define __CLANG_INTTYPES_H
26 #include_next <inttypes.h>
28 #if defined(_MSC_VER) && _MSC_VER < 1900
29 /* MSVC headers define int32_t as int, but PRIx32 as "lx" instead of "x".
30 * This triggers format warnings, so fix it up here. */
67 #define PRIdLEAST32 "d"
68 #define PRIdFAST32 "d"
70 #define PRIiLEAST32 "i"
71 #define PRIiFAST32 "i"
73 #define PRIoLEAST32 "o"
74 #define PRIoFAST32 "o"
76 #define PRIuLEAST32 "u"
77 #define PRIuFAST32 "u"
79 #define PRIxLEAST32 "x"
80 #define PRIxFAST32 "x"
82 #define PRIXLEAST32 "X"
83 #define PRIXFAST32 "X"
86 #define SCNdLEAST32 "d"
87 #define SCNdFAST32 "d"
89 #define SCNiLEAST32 "i"
90 #define SCNiFAST32 "i"
92 #define SCNoLEAST32 "o"
93 #define SCNoFAST32 "o"
95 #define SCNuLEAST32 "u"
96 #define SCNuFAST32 "u"
98 #define SCNxLEAST32 "x"
99 #define SCNxFAST32 "x"
102 #endif /* __CLANG_INTTYPES_H */