From: divverent Date: Wed, 24 Nov 2010 20:35:56 +0000 (+0000) Subject: fix a stupid warning on OS X X-Git-Tag: xonotic-v0.1.0preview~49 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=04295fa5c63c559a4b2ff0460249b5af07c60264;p=xonotic%2Fdarkplaces.git fix a stupid warning on OS X git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10625 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=cca46dbd21559aef23c04c41fb714f2cc92c5cb9 --- 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