Make sure MSVC is still OK with our MINGW changes

This commit is contained in:
Pavel Krajcevski 2013-11-11 18:54:29 -05:00
parent 6dd43cde4f
commit 9a7813b732

View file

@ -61,6 +61,11 @@
#include <cstdlib>
#include <cstring>
#ifdef _MSC_VER
#define snprintf(out, outSz, fmt, ...) _snprintf_s(out, outSz, _TRUNCATE, fmt, __VA_ARGS__)
#define strncpy(dst, src, dstSz) strncpy_s(dst, dstSz, src, _TRUNCATE)
#endif
void ErrorExit(LPCSTR lpszFunction)
{
// Retrieve the system error message for the last-error code