File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -94,14 +94,8 @@ Index of this file:
94
94
#include <stdio.h> // vsnprintf, sscanf, printf
95
95
#include <stdlib.h> // NULL, malloc, free, atoi
96
96
#include <stdint.h> // intptr_t
97
-
98
- // Format specifiers for 64-bit values (hasn't been decently standardized since VS2013)
99
97
#if !defined(_MSC_VER) || _MSC_VER >= 1800
100
- #include <inttypes.h>
101
- #elif !defined(PRId64)
102
- #define PRId64 "I64d"
103
- #define PRIu64 "I64u"
104
- #define PRIX64 "I64X"
98
+ #include <inttypes.h> // PRId64/PRIu64, not avail in some MinGW headers.
105
99
#endif
106
100
107
101
// Visual Studio warnings
@@ -151,6 +145,15 @@ Index of this file:
151
145
#define vsnprintf _vsnprintf
152
146
#endif
153
147
148
+ // Format specifiers for 64-bit values (hasn't been decently standardized before VS2013)
149
+ #if !defined(PRId64) && defined(_MSC_VER)
150
+ #define PRId64 "I64d"
151
+ #define PRIu64 "I64u"
152
+ #elif !defined(PRId64)
153
+ #define PRId64 "lld"
154
+ #define PRIu64 "llu"
155
+ #endif
156
+
154
157
// Helpers macros
155
158
// We normally try to not use many helpers in imgui_demo.cpp in order to make code easier to copy and paste,
156
159
// but making an exception here as those are largely simplifying code...
You can’t perform that action at this time.
0 commit comments