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:
minggo 2015-02-25 09:27:38 +08:00
commit c460a5bfa4
2 changed files with 14 additions and 0 deletions

View File

@ -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"

View File

@ -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"