fixed for ABSOLUTE and RELATIVE winrt compiler reserved words

This commit is contained in:
Dale Stammen 2014-05-12 09:26:39 -07:00
parent 50336dca40
commit bad71e38d0
2 changed files with 15 additions and 0 deletions

View File

@ -60,6 +60,13 @@ const Margin MarginZero = Margin();
* @js NA
* @lua NA
*/
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
#ifdef RELATIVE
#undef RELATIVE
#endif
#endif
class LayoutParameter : public Ref
{
public:

View File

@ -49,6 +49,14 @@ CC_DEPRECATED_ATTRIBUTE typedef void (Ref::*SEL_TouchEvent)(Ref*,TouchEventType)
* @js NA
* @lua NA
*/
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
#ifdef ABSOLUTE
#undef ABSOLUTE
#endif
#endif
class Widget : public ProtectedNode
{
public: