X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/907789a0f72354f30ec04f79f03a0b7e2a29ac9a..794bcc2dea743ac907b839f54e451847c9ea4b72:/include/wx/serbase.h?ds=sidebyside diff --git a/include/wx/serbase.h b/include/wx/serbase.h index 1abe0e30c2..1ec7b6a52d 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 "wx/setup.h" +#include "wx/dynlib.h" #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,7 +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