diff --git a/cocos/base/CCEventDispatcher.h b/cocos/base/CCEventDispatcher.h index 5fd9f80877..249e39d23e 100644 --- a/cocos/base/CCEventDispatcher.h +++ b/cocos/base/CCEventDispatcher.h @@ -53,7 +53,7 @@ event listeners can be added and removed even from within an EventListener, while events are being dispatched. */ -class EventDispatcher : public Ref +class CC_DLL EventDispatcher : public Ref { public: // Adds event listener diff --git a/cocos/base/CCEventListener.h b/cocos/base/CCEventListener.h index d890c6938d..47dad7cd07 100644 --- a/cocos/base/CCEventListener.h +++ b/cocos/base/CCEventListener.h @@ -43,7 +43,7 @@ class Node; * If you need custom listener which with different callback, you need to inherit this class. * For instance, you could refer to EventListenerAcceleration, EventListenerKeyboard, EventListenerTouchOneByOne, EventListenerCustom. */ -class EventListener : public Ref +class CC_DLL EventListener : public Ref { public: enum class Type diff --git a/cocos/base/CCEventListenerTouch.h b/cocos/base/CCEventListenerTouch.h index c2fbace749..ff272511e9 100644 --- a/cocos/base/CCEventListenerTouch.h +++ b/cocos/base/CCEventListenerTouch.h @@ -33,7 +33,7 @@ NS_CC_BEGIN -class EventListenerTouchOneByOne : public EventListener +class CC_DLL EventListenerTouchOneByOne : public EventListener { public: static const std::string LISTENER_ID; @@ -67,7 +67,7 @@ private: }; -class EventListenerTouchAllAtOnce : public EventListener +class CC_DLL EventListenerTouchAllAtOnce : public EventListener { public: static const std::string LISTENER_ID;