Fixed compiling problems

This commit is contained in:
Zane U. Ji 2014-05-04 08:40:05 +08:00
parent a3cfe9b55f
commit f4e0b8b1cb
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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() );