From 559f64ee4f235c5a5e7404e271f1bdd7506627da Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Mon, 13 Mar 2017 23:57:28 +0000 Subject: [PATCH] pcsx2: Remove VS2013 ifdefs --- pcsx2/gui/ConsoleLogger.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pcsx2/gui/ConsoleLogger.h b/pcsx2/gui/ConsoleLogger.h index ba043a6994..cec768d97d 100644 --- a/pcsx2/gui/ConsoleLogger.h +++ b/pcsx2/gui/ConsoleLogger.h @@ -230,19 +230,9 @@ template 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 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()); }