diff --git a/cocos/2d/CCFontAtlas.h b/cocos/2d/CCFontAtlas.h index ecf1287b87..73eb643ef9 100644 --- a/cocos/2d/CCFontAtlas.h +++ b/cocos/2d/CCFontAtlas.h @@ -27,6 +27,7 @@ #include "base/CCPlatformMacros.h" #include "base/CCRef.h" +#include "CCStdC.h" // ssize_t on windows #include #include diff --git a/cocos/2d/CCTweenFunction.cpp b/cocos/2d/CCTweenFunction.cpp index 46fef8804b..3432469d17 100644 --- a/cocos/2d/CCTweenFunction.cpp +++ b/cocos/2d/CCTweenFunction.cpp @@ -23,7 +23,10 @@ THE SOFTWARE. ****************************************************************************/ #include "2d/CCTweenFunction.h" + +#define _USE_MATH_DEFINES // needed for M_PI and M_PI2 #include // M_PI +#undef _USE_MATH_DEFINES NS_CC_BEGIN