X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a62848fdba49396eba4f52c037d2dc82130274b4..51623cc53f350935337e57930eaaf1afe9a48c3b:/include/wx/flags.h?ds=sidebyside diff --git a/include/wx/flags.h b/include/wx/flags.h index cd5b2e3dba..0b2ffe8dc8 100644 --- a/include/wx/flags.h +++ b/include/wx/flags.h @@ -12,10 +12,6 @@ #ifndef _WX_SETH__ #define _WX_SETH__ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "flags.h" -#endif - // wxBitset should be applied to an enum, then this can be used like // bitwise operators but keeps the type safety and information, the // enums must be in a sequence , their value determines the bit position @@ -157,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) {} \ @@ -166,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