]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.c
PRVM: clarify tempstring messages
[xonotic/darkplaces.git] / common.c
index cf2fb248dd2737bc8bf22dd843aaaec88532f494..c14ada56bef03674cd4d8be322e37747545c6291 100644 (file)
--- a/common.c
+++ b/common.c
@@ -1345,7 +1345,8 @@ copy one byte at a time (even at -O3) and its advantage increases with string le
 #ifdef WIN32
        // memccpy() is standard in POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD, C23.
        // Microsoft supports it, but apparently complains if we use it.
-       #pragma warning(disable : 4996)
+       #undef memccpy
+       #define memccpy _memccpy
 #endif
 
 /** Chain-copies a string with truncation and efficiency (compared to strlcat()).