X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27b0c286444b5f2404f29fb2bc233bfcfaaa6bba..789f8e6ad40488d2dd5f5f4d87e195d0f1e23422:/src/xml/xml.cpp diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index 3b59fcf271..056cc19565 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -8,7 +8,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "xml.h" #endif @@ -32,6 +32,10 @@ #include "expat.h" // from Expat +// DLL options compatibility check: +#include "wx/app.h" +WX_CHECK_BUILD_OPTIONS("wxXML") + //----------------------------------------------------------------------------- // wxXmlNode //----------------------------------------------------------------------------- @@ -356,7 +360,7 @@ inline static wxString CharToString(wxMBConv *conv, if ( conv ) { size_t nLen = (len != wxSTRING_MAXLEN) ? len : - nLen = wxConvUTF8.MB2WC((wchar_t*) NULL, s, 0); + wxConvUTF8.MB2WC((wchar_t*) NULL, s, 0); wchar_t *buf = new wchar_t[nLen+1]; wxConvUTF8.MB2WC(buf, s, nLen); @@ -576,7 +580,13 @@ inline static void OutputString(wxOutputStream& stream, const wxString& str, { if (str.IsEmpty()) return; #if wxUSE_UNICODE - const wxWX2MBbuf buf(str.mb_str(convFile ? *convFile : wxConvUTF8)); + const wxWX2MBbuf buf(str.mb_str( +#ifdef __MWERKS__ + *(convFile ? convFile : &wxConvUTF8) +#else + convFile ? *convFile : wxConvUTF8 +#endif + )); stream.Write((const char*)buf, strlen((const char*)buf)); #else if ( convFile == NULL )