]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
fix a stupid warning on OS X
[xonotic/darkplaces.git] / 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