Add printf format codes for 64-bit unsigned integers
This commit is contained in:
@@ -339,10 +339,12 @@
|
|||||||
/* MSVCRT of course has to have a different syntax for long long *sigh* */
|
/* MSVCRT of course has to have a different syntax for long long *sigh* */
|
||||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||||
#define OTTD_PRINTF64 "%I64d"
|
#define OTTD_PRINTF64 "%I64d"
|
||||||
|
#define OTTD_PRINTF64U "%I64u"
|
||||||
#define OTTD_PRINTFHEX64 "%I64x"
|
#define OTTD_PRINTFHEX64 "%I64x"
|
||||||
#define PRINTF_SIZE "%Iu"
|
#define PRINTF_SIZE "%Iu"
|
||||||
#else
|
#else
|
||||||
#define OTTD_PRINTF64 "%lld"
|
#define OTTD_PRINTF64 "%lld"
|
||||||
|
#define OTTD_PRINTF64U "%llu"
|
||||||
#define OTTD_PRINTFHEX64 "%llx"
|
#define OTTD_PRINTFHEX64 "%llx"
|
||||||
#define PRINTF_SIZE "%zu"
|
#define PRINTF_SIZE "%zu"
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user