From af18572491ba630e24f5c7dacf0d2d5a08929a6a Mon Sep 17 00:00:00 2001 From: Apology11 Date: Sun, 12 Jul 2015 13:12:14 +0200 Subject: don“t define snprintf on Visual Studio 2015 Visual Studio 2015 defines this in stdio now--- src/common/common_funcs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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