Revert "Remove the remapping of snprintf to _snprintf when compiling with MSC."

This reverts commit 9801635f56.
This commit is contained in:
Bart House
2019-07-14 21:18:03 -07:00
parent 44d84c3163
commit 733e760638

View File

@@ -146,6 +146,14 @@ extern void NDECL(getlock);
#define strncmpi(a, b, c) strnicmp(a, b, c)
#endif
#ifdef _MSC_VER
/* Visual Studio defines this in their own headers, which we don't use */
#ifndef snprintf
#define snprintf _snprintf
#pragma warning( \
disable : 4996) /* deprecation warning suggesting snprintf_s */
#endif
#endif
#include <sys/types.h>
#include <stdlib.h>