From 4688a9e79e4bfaa688592b54bc018bb46581346d Mon Sep 17 00:00:00 2001 From: vl Date: Wed, 9 Feb 2011 20:24:58 +0100 Subject: [PATCH] Changed: used PRI*64 macro to printf and scanf int64 --- code/nel/include/nel/misc/types_nl.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/nel/include/nel/misc/types_nl.h b/code/nel/include/nel/misc/types_nl.h index 313d410b3..04b56f63e 100644 --- a/code/nel/include/nel/misc/types_nl.h +++ b/code/nel/include/nel/misc/types_nl.h @@ -283,11 +283,23 @@ typedef uint64_t uint64; typedef int sint; // at least 32bits (depend of processor) typedef unsigned int uint; // at least 32bits (depend of processor) +// used for macro PRI*64 +#define __STDC_FORMAT_MACROS +#include + +#ifdef NL_OS_MAC +#define NL_I64 __PRI_64_LENGTH_MODIFIER__ +#else +#define NL_I64 __PRI64_PREFIX +#endif + +/* #ifdef _LP64 # define NL_I64 "l" #else # define NL_I64 "ll" #endif // _LP64 +*/ #endif // NL_OS_UNIX