project64/Source/Common/Platform.cpp

16 lines
317 B
C++
Raw Normal View History

2021-04-12 09:41:28 +00:00
#include "Platform.h"
2022-10-03 08:04:42 +00:00
#include <stdarg.h>
2021-04-12 09:41:28 +00:00
#include <stdint.h>
#include <stdio.h>
2016-01-04 06:49:33 +00:00
#ifndef _WIN32
int _vscprintf(const char * format, va_list pargs)
2016-01-04 06:49:33 +00:00
{
2016-01-17 05:57:08 +00:00
int retval;
va_list argcopy;
va_copy(argcopy, pargs);
2021-04-12 11:35:39 +00:00
retval = vsnprintf(nullptr, 0, format, argcopy);
2016-01-17 05:57:08 +00:00
va_end(argcopy);
return retval;
2016-01-04 06:49:33 +00:00
}
#endif