From e6169261c3d4322b6227a55c6d36faf8ed1a8f8e Mon Sep 17 00:00:00 2001 From: Carlos Madrazo Date: Fri, 17 Jul 2015 14:13:00 -0500 Subject: [PATCH] compilation fix for VS2015 snprintf is already defined in VS2015 (_MSC_VER == 1900). See reference http://stackoverflow.com/questions/27754492/vs-2015-compiling-cocos2d-x-3-3-error-fatal-error-c1189-error-macro-definiti --- project/configs/openal_config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/project/configs/openal_config.h b/project/configs/openal_config.h index 6ff8169..b188a17 100644 --- a/project/configs/openal_config.h +++ b/project/configs/openal_config.h @@ -72,7 +72,9 @@ #define strcasecmp _stricmp #define strncasecmp _strnicmp +#if defined(_MSC_VER) && _MSC_VER <1900 #define snprintf _snprintf +#endif //#define isfinite _finite //#define isnan _isnan