From b2f006b9caa886c631afa9c4e106368311b550eb Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 20 Sep 2010 16:21:23 +0200 Subject: [PATCH] Changed: #825 Remove all warnings when compiling Ryzom --- code/nel/include/nel/misc/types_nl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/nel/include/nel/misc/types_nl.h b/code/nel/include/nel/misc/types_nl.h index 20118c11c..f2e1c0e6f 100644 --- a/code/nel/include/nel/misc/types_nl.h +++ b/code/nel/include/nel/misc/types_nl.h @@ -283,7 +283,11 @@ typedef uint64_t uint64; typedef int sint; // at least 32bits (depend of processor) typedef unsigned int uint; // at least 32bits (depend of processor) -#define NL_I64 "ll" +#if __SIZEOF_LONG__ == 8 +# define NL_I64 "l" +#else +# define NL_I64 "ll" +#endif // __SIZEOF_LONG__ == 8 #endif // NL_OS_UNIX