#include "wx/zstream.h"
#include "wx/strconv.h"
#include "wx/scopedptr.h"
+#include "wx/versioninfo.h"
#include "expat.h" // from Expat
wxUnusedVar(convMem);
if ( !convFile )
convFile = &wxConvUTF8;
-#if 1
- // JACS test
- const wxWX2MBbuf buf(str.mb_str(*convFile));
- if (!buf.length())
- return false;
-
- stream.Write((const char*)buf, strlen((const char*)buf));
-#else
+
const wxScopedCharBuffer buf(str.mb_str(*convFile));
if ( !buf.length() )
{
}
stream.Write(buf, buf.length());
-#endif
-
#else // !wxUSE_UNICODE
if ( convFile && convMem )
{
OutputString(stream, wxS("\n"), convMem.get(), convFile.get());
}
+/*static*/ wxVersionInfo wxXmlDocument::GetLibraryVersionInfo()
+{
+ return wxVersionInfo("expat",
+ XML_MAJOR_VERSION,
+ XML_MINOR_VERSION,
+ XML_MICRO_VERSION);
+}
+
#endif // wxUSE_XML