X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..ca77701441e39245dcbfce903049e76f166979e5:/include/wx/flags.h?ds=sidebyside diff --git a/include/wx/flags.h b/include/wx/flags.h index 6f9c00a841..0b2ffe8dc8 100644 --- a/include/wx/flags.h +++ b/include/wx/flags.h @@ -153,8 +153,10 @@ private : unsigned long m_data; }; -#define WX_DEFINE_FLAGS( flags ) \ - class WXDLLEXPORT flags \ +#if wxUSE_EXTENDED_RTTI + +#define wxDEFINE_FLAGS( flags ) \ + class WXDLLIMPEXP_BASE flags \ {\ public : \ flags(long data=0) :m_data(data) {} \ @@ -162,4 +164,14 @@ private : bool operator ==(const flags &rhs) const { return m_data == rhs.m_data; }\ } ; +#else + +#define wxDEFINE_FLAGS( flags ) + +#endif + +#if WXWIN_COMPATIBILITY_2_8 + #define WX_DEFINE_FLAGS wxDEFINE_FLAGS +#endif + #endif