From: Wolfgang (Blub) Bumiller Date: Thu, 16 Aug 2012 11:45:45 +0000 (+0200) Subject: fopen -> fopen_s on windows X-Git-Tag: 0.1-rc1~260 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2c020837ea158e12df6b10189eca28266d61ddac;p=xonotic%2Fgmqcc.git fopen -> fopen_s on windows --- diff --git a/gmqcc.h b/gmqcc.h index fa06c2e..dee3678 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -189,6 +189,10 @@ typedef char intptr_size_is_correct [sizeof(uintptr_t)== sizeof(int*)?1:-1]; /*===================================================================*/ /*=========================== util.c ================================*/ /*===================================================================*/ +#ifdef WIN32 +# define fopen fopen_s +#endif + void *util_memory_a (unsigned int, unsigned int, const char *); void util_memory_d (void *, unsigned int, const char *); void util_meminfo ();