From 41badc2496f791cff934560d91f4c432c3f95b48 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 5 Aug 2006 20:03:21 +0000 Subject: [PATCH] hush warnings about strcat and other redefinitions by undefining them first git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6545 d7cf8633-e32d-0410-b094-e92efae38249 --- common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.h b/common.h index 1cfcfd44..de7eb238 100644 --- a/common.h +++ b/common.h @@ -229,10 +229,16 @@ extern int dpsnprintf (char *buffer, size_t buffersize, const char *format, ...) extern int dpvsnprintf (char *buffer, size_t buffersize, const char *format, va_list args); // A bunch of functions are forbidden for security reasons (and also to please MSVS 2005, for some of them) +// LordHavoc: added #undef lines here to avoid warnings in Linux +#undef strcat #define strcat DO_NOT_USE_STRCAT__USE_STRLCAT_OR_MEMCPY +#undef strncat #define strncat DO_NOT_USE_STRNCAT__USE_STRLCAT_OR_MEMCPY +#undef strcpy #define strcpy DO_NOT_USE_STRCPY__USE_STRLCPY_OR_MEMCPY +#undef strncpy #define strncpy DO_NOT_USE_STRNCPY__USE_STRLCPY_OR_MEMCPY +//#undef sprintf //#define sprintf DO_NOT_USE_SPRINTF__USE_DPSNPRINTF -- 2.39.2