VS 2015 compiling cocos2d-x 3.3 error “fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration”
Until now, Many libraries & programs used snprintf() function by defining it as _snprintf(), since _snprintf() was supported. #define snprintf _snprintf Finally, Visual Studio 14 defines snprintf()! Since, snprintf() is now officially supported. We should never #define it. Doing it will overshadow new snprintf() function defined in stdio.h. To restrict that, this is added in … Read more