From 8d9d58fed96e281c1c9533062ad703ac255c23e1 Mon Sep 17 00:00:00 2001 From: vl Date: Tue, 21 Sep 2010 09:25:53 +0200 Subject: [PATCH] Fixed: compile on linux --- code/nel/include/nel/misc/string_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/nel/include/nel/misc/string_common.h b/code/nel/include/nel/misc/string_common.h index 4eca5d13d..1d6cf0fa2 100644 --- a/code/nel/include/nel/misc/string_common.h +++ b/code/nel/include/nel/misc/string_common.h @@ -205,8 +205,10 @@ inline std::string toString(const long unsigned int &val) #if (SIZEOF_SIZE_T) == 8 inline std::string toString(const size_t &val) { return toString("%"NL_I64"u", val); } #else +#ifdef NL_OS_MAC inline std::string toString(const size_t &val) { return toString("%u", val); } #endif +#endif inline std::string toString(const float &val) { return toString("%f", val); } inline std::string toString(const double &val) { return toString("%lf", val); } inline std::string toString(const bool &val) { return toString("%u", val?1:0); }