From: lordhavoc Date: Sun, 28 Oct 2001 20:48:43 +0000 (+0000) Subject: added #define snprintf _snprintf for win32 X-Git-Tag: RELEASE_0_2_0_RC1~773 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=95b881bd92f57e84a2fb4c8d52ca7cd84f04cb02;p=xonotic%2Fdarkplaces.git added #define snprintf _snprintf for win32 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@959 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/common.h b/common.h index 2d635489..c772fef8 100644 --- a/common.h +++ b/common.h @@ -31,6 +31,11 @@ typedef enum {false, true} qboolean; #include "quakeio.h" +// LordHavoc: MSVC has a different name for snprintf +#ifndef snprintf +#define snprintf _snprintf +#endif + //============================================================================ extern void *qmalloc(unsigned int size);