Error C1189 #error: Macro definition of vsnprintf conflicts with Standard Library function declaration
- VS2017 #error: : Macro definition of snprintf conflicts with Standard Library function declaration
- #error Macro definition of vsnprintf conflicts with Standard Library function declaration
- VS 2015 compiling cocos2d-x 3.3 error “fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration”
- VS 2015 compiling cocos2d-x 3.3 error “fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration”
#if _MSC_VER < 1700
#define snprintf _snprintf
#endif.
#if _MSC_VER < 1500
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#define strdup _strdup
#endif.
#if _MSC_VER < 1900 //vs2015 already have this function
#define snprintf _snprintf_s
#endif.
one solution is good.
#if _MSC_VER < 1900 //vs2015 already have this function
#define snprintf _snprintf_s
#endif
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
No comments:
Post a Comment