From cca46dbd21559aef23c04c41fb714f2cc92c5cb9 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 24 Nov 2010 20:35:56 +0000 Subject: [PATCH] fix a stupid warning on OS X git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10625 d7cf8633-e32d-0410-b094-e92efae38249 --- common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.h b/common.h index 1e17fab8..a5565ac7 100644 --- 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 -- 2.39.2