1 /** 2 * This file has no copyright assigned and is placed in the Public Domain. 3 * This file is part of the mingw-w64 runtime package. 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package. 5 */ 6 7 /* Define __mingw_<printf> macros. */ 8 #if defined(__USE_MINGW_ANSI_STDIO) && (defined(_INC_STDIO) || defined(_WSTDIO_DEFINED)) && ((__USE_MINGW_ANSI_STDIO + 0) != 0) 9 10 /* Redefine to GNU specific PRI... and SCN... macros. */ 11 #if defined(_INTTYPES_H_) && defined(PRId64) 12 #undef PRId64 13 #undef PRIdLEAST64 14 #undef PRIdFAST64 15 #undef PRIdMAX 16 #undef PRIi64 17 #undef PRIiLEAST64 18 #undef PRIiFAST64 19 #undef PRIiMAX 20 #undef PRIo64 21 #undef PRIoLEAST64 22 #undef PRIoFAST64 23 #undef PRIoMAX 24 #undef PRIu64 25 #undef PRIuLEAST64 26 #undef PRIuFAST64 27 #undef PRIuMAX 28 #undef PRIx64 29 #undef PRIxLEAST64 30 #undef PRIxFAST64 31 #undef PRIxMAX 32 #undef PRIX64 33 #undef PRIXLEAST64 34 #undef PRIXFAST64 35 #undef PRIXMAX 36 37 #undef SCNd64 38 #undef SCNdLEAST64 39 #undef SCNdFAST64 40 #undef SCNdMAX 41 #undef SCNi64 42 #undef SCNiLEAST64 43 #undef SCNiFAST64 44 #undef SCNiMAX 45 #undef SCNo64 46 #undef SCNoLEAST64 47 #undef SCNoFAST64 48 #undef SCNoMAX 49 #undef SCNx64 50 #undef SCNxLEAST64 51 #undef SCNxFAST64 52 #undef SCNxMAX 53 #undef SCNu64 54 #undef SCNuLEAST64 55 #undef SCNuFAST64 56 #undef SCNuMAX 57 58 #ifdef _WIN64 59 #undef PRIdPTR 60 #undef PRIiPTR 61 #undef PRIoPTR 62 #undef PRIuPTR 63 #undef PRIxPTR 64 #undef PRIXPTR 65 66 #undef SCNdPTR 67 #undef SCNiPTR 68 #undef SCNoPTR 69 #undef SCNxPTR 70 #undef SCNuPTR 71 72 #endif /* _WIN64 */ 73 74 #define PRId64 "lld" 75 #define PRIdLEAST64 "lld" 76 #define PRIdFAST64 "lld" 77 #define PRIdMAX "lld" 78 #define PRIi64 "lli" 79 #define PRIiLEAST64 "lli" 80 #define PRIiFAST64 "lli" 81 #define PRIiMAX "lli" 82 #define PRIo64 "llo" 83 #define PRIoLEAST64 "llo" 84 #define PRIoFAST64 "llo" 85 #define PRIoMAX "llo" 86 #define PRIu64 "llu" 87 #define PRIuLEAST64 "llu" 88 #define PRIuFAST64 "llu" 89 #define PRIuMAX "llu" 90 #define PRIx64 "llx" 91 #define PRIxLEAST64 "llx" 92 #define PRIxFAST64 "llx" 93 #define PRIxMAX "llx" 94 #define PRIX64 "llX" 95 #define PRIXLEAST64 "llX" 96 #define PRIXFAST64 "llX" 97 #define PRIXMAX "llX" 98 99 #define SCNd64 "lld" 100 #define SCNdLEAST64 "lld" 101 #define SCNdFAST64 "lld" 102 #define SCNdMAX "lld" 103 #define SCNi64 "lli" 104 #define SCNiLEAST64 "lli" 105 #define SCNiFAST64 "lli" 106 #define SCNiMAX "lli" 107 #define SCNo64 "llo" 108 #define SCNoLEAST64 "llo" 109 #define SCNoFAST64 "llo" 110 #define SCNoMAX "llo" 111 #define SCNx64 "llx" 112 #define SCNxLEAST64 "llx" 113 #define SCNxFAST64 "llx" 114 #define SCNxMAX "llx" 115 #define SCNu64 "llu" 116 #define SCNuLEAST64 "llu" 117 #define SCNuFAST64 "llu" 118 #define SCNuMAX "llu" 119 120 #ifdef _WIN64 121 #define PRIdPTR "lld" 122 #define PRIiPTR "lli" 123 #define PRIoPTR "llo" 124 #define PRIuPTR "llu" 125 #define PRIxPTR "llx" 126 #define PRIXPTR "llX" 127 128 #define SCNdPTR "lld" 129 #define SCNiPTR "lli" 130 #define SCNoPTR "llo" 131 #define SCNxPTR "llx" 132 #define SCNuPTR "llu" 133 #endif /* _WIN64 */ 134 #endif /* defined(_INTTYPES_H_) && defined(PRId64) */ 135 136 #endif /* defined(__USE_MINGW_ANSI_STDIO) && defined(_INC_STDIO) && __USE_MINGW_ANSI_STDIO != 0 */ 137