pcsx2: Remove VS2013 ifdefs

This commit is contained in:
Jonathan Li 2017-03-13 23:57:28 +00:00
parent c498833c27
commit 559f64ee4f
1 changed files with 0 additions and 10 deletions

View File

@ -230,19 +230,9 @@ template<typename ... Args>
void OSDlog(ConsoleColors color, bool console, const std::string& format, Args ... args) {
if (!GSosdLog && !console) return;
#if defined(_MSC_VER) && _MSC_VER < 1900
size_t size = _snprintf( nullptr, 0, format.c_str(), args ... ) + 1; // Extra space for '\0'
#else
size_t size = snprintf( nullptr, 0, format.c_str(), args ... ) + 1; // Extra space for '\0'
#endif
std::vector<char> buf(size);
#if defined(_MSC_VER) && _MSC_VER < 1900
_snprintf( buf.data(), size, format.c_str(), args ... );
#else
snprintf( buf.data(), size, format.c_str(), args ... );
#endif
OSDlog(color, console, buf.data());
}