mirror of https://github.com/axmolengine/axmol.git
fix compiling error on windows
This commit is contained in:
parent
04bfbdd5a1
commit
17ab047b7d
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "base/CCPlatformMacros.h"
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
||||||
|
#include "CCStdC.h" // ssize_t on windows
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,10 @@ THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "2d/CCTweenFunction.h"
|
#include "2d/CCTweenFunction.h"
|
||||||
|
|
||||||
|
#define _USE_MATH_DEFINES // needed for M_PI and M_PI2
|
||||||
#include <math.h> // M_PI
|
#include <math.h> // M_PI
|
||||||
|
#undef _USE_MATH_DEFINES
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue