mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 15:15:38 +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 <cstdlib>
|
||||||
#include <cstring>
|
#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)
|
void ErrorExit(LPCSTR lpszFunction)
|
||||||
{
|
{
|
||||||
// Retrieve the system error message for the last-error code
|
// Retrieve the system error message for the last-error code
|
||||||
|
|
Loading…
Reference in a new issue