From f4e0b8b1cb0a6f88070fa73017f28f4eb4d53a86 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sun, 4 May 2014 08:40:05 +0800 Subject: [PATCH] Fixed compiling problems --- src/wraplibxml.cpp | 5 +++++ src/xercescatalogresolver.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wraplibxml.cpp b/src/wraplibxml.cpp index ac90517..92ff335 100644 --- a/src/wraplibxml.cpp +++ b/src/wraplibxml.cpp @@ -733,8 +733,13 @@ wxFileName WrapLibxml::URLToFileName ( const wxString &url ) do { if ( uri->scheme == NULL || strcmp (uri->scheme, "file" ) ) break; +#ifdef _MSC_VER if ( uri->server && stricmp ( uri->server, "localhost") ) break; +#else + if ( uri->server && strcasecmp ( uri->server, "localhost") ) + break; +#endif if ( uri->path == NULL || !*uri->path ) break; diff --git a/src/xercescatalogresolver.cpp b/src/xercescatalogresolver.cpp index f5329cd..776642c 100644 --- a/src/xercescatalogresolver.cpp +++ b/src/xercescatalogresolver.cpp @@ -24,7 +24,7 @@ InputSource *XercesCatalogResolver::resolveEntity ( // Xerces-C++ can't open a file URL when there are multi-byte characters. // Parse the file URL here instead. - wxFileName file = WrapLibxml::URLToFileName ( systemId ); + wxFileName file = WrapLibxml::URLToFileName ( sysId ); if ( file.IsFileReadable() ) return new LocalFileInputSource ( ( const XMLCh * ) WrapXerces::toString ( file.GetFullPath() ).GetData() );