X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34138703c3997ce676a1e713d9ff9eb020640da7..6bc8a1c80bd02b418107ba089f0026125c43e39b:/include/wx/serbase.h diff --git a/include/wx/serbase.h b/include/wx/serbase.h index f4c3be113e..2b22998a44 100644 --- a/include/wx/serbase.h +++ b/include/wx/serbase.h @@ -11,10 +11,12 @@ #ifndef _WX_WX_SERBASEH_H__ #define _WX_WX_SERBASEH_H__ +#include #include #define WXSERIAL(classname) classname##_Serialize +#if wxUSE_SERIAL class wxObject_Serialize : public wxObject { DECLARE_DYNAMIC_CLASS(wxObject_Serialize) public: @@ -27,6 +29,8 @@ class wxObject_Serialize : public wxObject { protected: wxObject *m_object; }; +#endif + // wxUSE_SERIAL #define DECLARE_SERIAL_CLASS(classname, parent) \ @@ -54,4 +58,10 @@ IMPLEMENT_DYNAMIC_CLASS(classname##_Serialize, parent##_Serialize) #define IMPLEMENT_ALIAS_SERIAL_CLASS(classname, parent) \ IMPLEMENT_DYNAMIC_CLASS(classname##_Serialize, parent##_Serialize) +#if wxUSE_SERIAL +DECLARE_SERIAL_CLASS(wxList, wxObject) +DECLARE_SERIAL_CLASS(wxHashTable, wxObject) +#endif + // wxUSE_SERIAL + #endif