mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Use vsnprintf for MSVC 2003
This commit is contained in:
parent
f81fe2782a
commit
fed9c1521b
@ -34,7 +34,11 @@ int c99_vsnprintf_retro__(char *outBuf, size_t size, const char *format, va_list
|
||||
int count = -1;
|
||||
|
||||
if (size != 0)
|
||||
#if (_MSC_VER <= 1310)
|
||||
count = _vsnprintf(outBuf, _TRUNCATE, format, ap);
|
||||
#else
|
||||
count = _vsnprintf_s(outBuf, size, _TRUNCATE, format, ap);
|
||||
#endif
|
||||
if (count == -1)
|
||||
count = _vscprintf(format, ap);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user