From af18572491ba630e24f5c7dacf0d2d5a08929a6a Mon Sep 17 00:00:00 2001 From: Apology11 Date: Sun, 12 Jul 2015 13:12:14 +0200 Subject: =?UTF-8?q?don=C2=B4t=20define=20snprintf=20on=20Visual=20Studio?= =?UTF-8?q?=202015?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Visual Studio 2015 defines this in stdio now --- src/common/common_funcs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index c4fb3d9cc..59bd16dbf 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h @@ -69,8 +69,10 @@ inline u64 _rotr64(u64 x, unsigned int shift){ } #else // _MSC_VER - // Function Cross-Compatibility - #define snprintf _snprintf + #if (_MSC_VER < 1900) + // Function Cross-Compatibility + #define snprintf _snprintf + #endif // Locale Cross-Compatibility #define locale_t _locale_t -- cgit v1.2.3