]> git.rm.cloudns.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)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 24 Nov 2010 20:36:26 +0000 (21:36 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10625 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=cca46dbd21559aef23c04c41fb714f2cc92c5cb9

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