]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fopen -> fopen_s on windows
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 11:45:45 +0000 (13:45 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 11:45:45 +0000 (13:45 +0200)
gmqcc.h

diff --git a/gmqcc.h b/gmqcc.h
index fa06c2e66a247f46dad9408d90575d5e628d43c4..dee36781381c41850139e679b4481bffeb077ce6 100644 (file)
--- 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       ();