]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a stupid warning on OS X
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 24 Nov 2010 20:35:56 +0000 (20:35 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 24 Nov 2010 20:35:56 +0000 (20:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10625 d7cf8633-e32d-0410-b094-e92efae38249

common.h

index 1e17fab81ffe9c55e2b3eb35e6e8c619c9c3b8be..a5565ac76f050cdf72d9aad1f497058550b7f24f 100644 (file)
--- a/common.h
+++ b/common.h
@@ -216,7 +216,13 @@ char       *va(const char *format, ...) DP_FUNC_PRINTF(1);
 
 
 // snprintf and vsnprintf are NOT portable. Use their DP counterparts instead
+#ifdef snprintf
+# undef snprintf
+#endif
 #define snprintf DO_NOT_USE_SNPRINTF__USE_DPSNPRINTF
+#ifdef vsnprintf
+# undef vsnprintf
+#endif
 #define vsnprintf DO_NOT_USE_VSNPRINTF__USE_DPVSNPRINTF
 
 // dpsnprintf and dpvsnprintf