Fixed compiling problems
This commit is contained in:
parent
a3cfe9b55f
commit
f4e0b8b1cb
|
@ -733,8 +733,13 @@ wxFileName WrapLibxml::URLToFileName ( const wxString &url )
|
||||||
do {
|
do {
|
||||||
if ( uri->scheme == NULL || strcmp (uri->scheme, "file" ) )
|
if ( uri->scheme == NULL || strcmp (uri->scheme, "file" ) )
|
||||||
break;
|
break;
|
||||||
|
#ifdef _MSC_VER
|
||||||
if ( uri->server && stricmp ( uri->server, "localhost") )
|
if ( uri->server && stricmp ( uri->server, "localhost") )
|
||||||
break;
|
break;
|
||||||
|
#else
|
||||||
|
if ( uri->server && strcasecmp ( uri->server, "localhost") )
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
if ( uri->path == NULL || !*uri->path )
|
if ( uri->path == NULL || !*uri->path )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ InputSource *XercesCatalogResolver::resolveEntity (
|
||||||
|
|
||||||
// Xerces-C++ can't open a file URL when there are multi-byte characters.
|
// Xerces-C++ can't open a file URL when there are multi-byte characters.
|
||||||
// Parse the file URL here instead.
|
// Parse the file URL here instead.
|
||||||
wxFileName file = WrapLibxml::URLToFileName ( systemId );
|
wxFileName file = WrapLibxml::URLToFileName ( sysId );
|
||||||
if ( file.IsFileReadable() )
|
if ( file.IsFileReadable() )
|
||||||
return new LocalFileInputSource (
|
return new LocalFileInputSource (
|
||||||
( const XMLCh * ) WrapXerces::toString ( file.GetFullPath() ).GetData() );
|
( const XMLCh * ) WrapXerces::toString ( file.GetFullPath() ).GetData() );
|
||||||
|
|
Loading…
Reference in New Issue