X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/163b3ad72c6729733881e74608af586a99f43726..c9ccc09c64f4c29d4667796bef7b507d9e8d25ed:/include/wx/flags.h?ds=sidebyside diff --git a/include/wx/flags.h b/include/wx/flags.h index def2feb0d8..0b2ffe8dc8 100644 --- a/include/wx/flags.h +++ b/include/wx/flags.h @@ -153,7 +153,9 @@ private : unsigned long m_data; }; -#define WX_DEFINE_FLAGS( flags ) \ +#if wxUSE_EXTENDED_RTTI + +#define wxDEFINE_FLAGS( flags ) \ class WXDLLIMPEXP_BASE flags \ {\ public : \ @@ -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