From: divverent Date: Sun, 13 May 2012 19:08:32 +0000 (+0000) Subject: workaround for broken libc on mingw32 X-Git-Tag: xonotic-v0.7.0~137 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=f5ec9ca42a5e659c456983dec70fad47a5bfd719;p=xonotic%2Fdarkplaces.git workaround for broken libc on mingw32 mingw32-gcc claims to be C99, but its sprintf() isn't git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11816 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=29e0241795779f481dffbcd835a35ec9bf515ff6 --- diff --git a/quakedef.h b/quakedef.h index afa8aaa7..6bd5ddfa 100644 --- a/quakedef.h +++ b/quakedef.h @@ -563,7 +563,9 @@ void Sys_Shared_Init(void); #define VECTOR_LOSSLESS_FORMAT "%.9g %.9g %.9g" #endif -#ifdef _MSC_VER +// originally this was _MSC_VER +// but here we want to test the system libc, which on win32 is borked, and NOT the compiler +#ifdef WIN32 #define INT_LOSSLESS_FORMAT_SIZE "I64" #define INT_LOSSLESS_FORMAT_CONVERT_S(x) ((__int64)(x)) #define INT_LOSSLESS_FORMAT_CONVERT_U(x) ((unsigned __int64)(x))