mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 11:57:00 +00:00
parent
4d6fbaff11
commit
edebb90a9a
@ -94,14 +94,8 @@ Index of this file:
|
||||
#include <stdio.h> // vsnprintf, sscanf, printf
|
||||
#include <stdlib.h> // NULL, malloc, free, atoi
|
||||
#include <stdint.h> // intptr_t
|
||||
|
||||
// Format specifiers for 64-bit values (hasn't been decently standardized since VS2013)
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1800
|
||||
#include <inttypes.h>
|
||||
#elif !defined(PRId64)
|
||||
#define PRId64 "I64d"
|
||||
#define PRIu64 "I64u"
|
||||
#define PRIX64 "I64X"
|
||||
#include <inttypes.h> // PRId64/PRIu64, not avail in some MinGW headers.
|
||||
#endif
|
||||
|
||||
// Visual Studio warnings
|
||||
@ -151,6 +145,15 @@ Index of this file:
|
||||
#define vsnprintf _vsnprintf
|
||||
#endif
|
||||
|
||||
// Format specifiers for 64-bit values (hasn't been decently standardized before VS2013)
|
||||
#if !defined(PRId64) && defined(_MSC_VER)
|
||||
#define PRId64 "I64d"
|
||||
#define PRIu64 "I64u"
|
||||
#elif !defined(PRId64)
|
||||
#define PRId64 "lld"
|
||||
#define PRIu64 "llu"
|
||||
#endif
|
||||
|
||||
// Helpers macros
|
||||
// We normally try to not use many helpers in imgui_demo.cpp in order to make code easier to copy and paste,
|
||||
// but making an exception here as those are largely simplifying code...
|
||||
|
Loading…
Reference in New Issue
Block a user