mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-08 05:55:35 +00:00
Make sure MSVC is still OK with our MINGW changes
This commit is contained in:
parent
6dd43cde4f
commit
9a7813b732
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue