fix compiling error on windows

This commit is contained in:
minggo 2014-08-27 15:04:22 +08:00
parent 04bfbdd5a1
commit 17ab047b7d
2 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include "base/CCPlatformMacros.h"
#include "base/CCRef.h"
#include "CCStdC.h" // ssize_t on windows
#include <string>
#include <unordered_map>

View File

@ -23,7 +23,10 @@ THE SOFTWARE.
****************************************************************************/
#include "2d/CCTweenFunction.h"
#define _USE_MATH_DEFINES // needed for M_PI and M_PI2
#include <math.h> // M_PI
#undef _USE_MATH_DEFINES
NS_CC_BEGIN