diff --git a/cocos/gui/UIWidget.h b/cocos/gui/UIWidget.h index 065f794721..84852df00e 100644 --- a/cocos/gui/UIWidget.h +++ b/cocos/gui/UIWidget.h @@ -71,7 +71,7 @@ typedef enum }PositionType; typedef void (cocos2d::Object::*SEL_TouchEvent)(cocos2d::Object*,TouchEventType); -#define toucheventselector(_SELECTOR) (SEL_TouchEvent)(&_SELECTOR) +#define toucheventselector(_SELECTOR) (gui::SEL_TouchEvent)(&_SELECTOR) class UIWidget : public cocos2d::Object {