Fixed compiling problems
This commit is contained in:
parent
a3cfe9b55f
commit
f4e0b8b1cb
|
@ -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;
|
||||
|
||||
|
|
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue