Place this at the top of manager.h:
- Code: Select all
#if defined(WXMAKINGSTATIC_AUI) || defined(WXUSINGSTATIC_AUI)
# define WXDLLIMPEXP_AUI
# define WXDLLIMPEXP_DATA_AUI(type) type
# define DECLARE_AUI_EVENT_TYPE(name, value) DECLARE_LOCAL_EVENT_TYPE(name, value)
# define DEFINE_AUI_EVENT_TYPE(name) DEFINE_LOCAL_EVENT_TYPE(name)
#elif WXMAKINGDLL_AUI
# define WXDLLIMPEXP_AUI WXEXPORT
# define WXDLLIMPEXP_DATA_AUI(type) WXEXPORT type
# define DECLARE_AUI_EVENT_TYPE(name, value) DECLARE_EVENT_TYPE(name, value)
# define DEFINE_AUI_EVENT_TYPE(name) DEFINE_EVENT_TYPE(name)
#elif defined(WXUSINGDLL)
# define WXDLLIMPEXP_AUI WXIMPORT
# define WXDLLIMPEXP_DATA_AUI(type) WXIMPORT type
# define DECLARE_AUI_EVENT_TYPE(name, value) DECLARE_EVENT_TYPE(name, value)
# define DEFINE_AUI_EVENT_TYPE(name) DEFINE_EVENT_TYPE(name)
#else /* not making nor using DLL */
# define WXDLLIMPEXP_AUI
# define WXDLLIMPEXP_DATA_AUI(type) type
# define DECLARE_AUI_EVENT_TYPE(name, value) DECLARE_LOCAL_EVENT_TYPE(name, value)
# define DEFINE_AUI_EVENT_TYPE(name) DEFINE_LOCAL_EVENT_TYPE(name)
#endif
Change all of the WXDLLEXPORT statements to WXDLLIMPEXP_AUI.
Change all of DECLARE_EVENT_TYPE to DECLARE_AUI_EVENT_TYPE.
Change all of DEFINE_EVENT_TYPE to DEFINE_AUI_EVENT_TYPE.