X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=common.c;h=c14ada56bef03674cd4d8be322e37747545c6291;hb=0d43a1bcf22b005ab7feec5373db766819aca92d;hp=cf2fb248dd2737bc8bf22dd843aaaec88532f494;hpb=276a31ba5173770b72faa6abb3778aee1d71150d;p=xonotic%2Fdarkplaces.git diff --git a/common.c b/common.c index cf2fb248..c14ada56 100644 --- 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()).