X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/619f45aa8a5f7c3baadebb30c31d22399fe609a9..42d0df0030abbac4ca11a78b2f529133e3c9d986:/include/wx/clntdata.h diff --git a/include/wx/clntdata.h b/include/wx/clntdata.h index dd208f111a..3390864857 100644 --- a/include/wx/clntdata.h +++ b/include/wx/clntdata.h @@ -12,17 +12,23 @@ #ifndef _WX_CLNTDATAH__ #define _WX_CLNTDATAH__ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "clntdata.h" -#endif - #include "wx/defs.h" #include "wx/string.h" #include "wx/hashmap.h" +#if wxABI_VERSION >= 20602 + typedef int (*wxShadowObjectMethod)(void*, void*); -WX_DECLARE_STRING_HASH_MAP( wxShadowObjectMethod, wxShadowObjectMethods ); -WX_DECLARE_STRING_HASH_MAP( void*, wxShadowObjectFields ); +WX_DECLARE_STRING_HASH_MAP_WITH_DECL( + wxShadowObjectMethod, + wxShadowObjectMethods, + class WXDLLIMPEXP_BASE +); +WX_DECLARE_STRING_HASH_MAP_WITH_DECL( + void *, + wxShadowObjectFields, + class WXDLLIMPEXP_BASE +); class WXDLLIMPEXP_BASE wxShadowObject { @@ -80,6 +86,8 @@ private: wxShadowObjectFields m_fields; }; +#endif // wxABI_VERSION + // ---------------------------------------------------------------------------- // what kind of client data do we have? @@ -154,10 +162,11 @@ protected: }; -// not Motif-specific, but currently used only under Motif -#ifdef __WXMOTIF__ +// not Motif-specific, but currently used only under Motif, +// compiled to make wxMotif and wxGTK base libraries compatible +#if defined(__WXMOTIF__) || wxABI_VERSION >= 20602 -#include +#include "wx/vector.h" struct WXDLLIMPEXP_BASE wxClientDataDictionaryPair { @@ -167,7 +176,11 @@ struct WXDLLIMPEXP_BASE wxClientDataDictionaryPair wxClientData* data; }; -WX_DECLARE_VECTOR(wxClientDataDictionaryPair,wxClientDataDictionaryPairVector); +_WX_DECLARE_VECTOR( + wxClientDataDictionaryPair, + wxClientDataDictionaryPairVector, + WXDLLIMPEXP_BASE +); // this class is used internally to maintain the association between items // of (some subclasses of) wxControlWithItems and their client data