X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60df2e7d97ba2aae14cf05e5fddc491105b41566..7d88e2447eefd4660060a7e40cdff40db467753d:/src/common/serbase.cpp?ds=sidebyside diff --git a/src/common/serbase.cpp b/src/common/serbase.cpp index 85388cf0d7..7ad3a46705 100644 --- a/src/common/serbase.cpp +++ b/src/common/serbase.cpp @@ -15,6 +15,9 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#if defined(__WINDOWS__) +#include "wx/msw/private.h" +#endif #include "wx/serbase.h" #include "wx/datstrm.h" @@ -32,10 +35,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxObject_Serialize,wxObject) -#if !USE_SHARED_LIBRARY IMPLEMENT_SERIAL_CLASS(wxList, wxObject) IMPLEMENT_SERIAL_CLASS(wxHashTable, wxObject) -#endif void WXSERIAL(wxList)::StoreObject(wxObjectOutputStream& s) { @@ -58,7 +59,7 @@ void WXSERIAL(wxList)::StoreObject(wxObjectOutputStream& s) if (lst_object->GetKeyType() == wxKEY_INTEGER) { while (node) { - data_s.Write32(node->GetKeyInteger()); + data_s.Write32((size_t)node->GetKeyInteger()); node = node->Next(); } } else {