mirror of https://github.com/axmolengine/axmol.git
Merge pull request #10569 from MSOpenTech/v3-wp8-fix
fixed conflict with near and far already defined in windows.h for Win32, WP8 and WinRT
This commit is contained in:
commit
c460a5bfa4
|
@ -25,7 +25,14 @@
|
||||||
#include "Node3DReader.h"
|
#include "Node3DReader.h"
|
||||||
|
|
||||||
#include "cocostudio/CSParseBinary_generated.h"
|
#include "cocostudio/CSParseBinary_generated.h"
|
||||||
|
|
||||||
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT) || (CC_TARGET_PLATFORM == CC_PLATFORM_WP8)
|
||||||
|
// conflict with near and far defines in windows.h
|
||||||
|
#undef near
|
||||||
|
#undef far
|
||||||
|
#endif
|
||||||
#include "cocostudio/CSParse3DBinary_generated.h"
|
#include "cocostudio/CSParse3DBinary_generated.h"
|
||||||
|
|
||||||
#include "cocostudio/FlatBuffersSerialize.h"
|
#include "cocostudio/FlatBuffersSerialize.h"
|
||||||
#include "cocostudio/WidgetReader/NodeReader/NodeReader.h"
|
#include "cocostudio/WidgetReader/NodeReader/NodeReader.h"
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,14 @@
|
||||||
#include "Sprite3DReader.h"
|
#include "Sprite3DReader.h"
|
||||||
|
|
||||||
#include "cocostudio/CSParseBinary_generated.h"
|
#include "cocostudio/CSParseBinary_generated.h"
|
||||||
|
|
||||||
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT) || (CC_TARGET_PLATFORM == CC_PLATFORM_WP8)
|
||||||
|
// conflict with near and far defines in windows.h
|
||||||
|
#undef near
|
||||||
|
#undef far
|
||||||
|
#endif
|
||||||
#include "cocostudio/CSParse3DBinary_generated.h"
|
#include "cocostudio/CSParse3DBinary_generated.h"
|
||||||
|
|
||||||
#include "cocostudio/FlatBuffersSerialize.h"
|
#include "cocostudio/FlatBuffersSerialize.h"
|
||||||
#include "cocostudio/WidgetReader/Node3DReader/Node3DReader.h"
|
#include "cocostudio/WidgetReader/Node3DReader/Node3DReader.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue