aboutsummaryrefslogtreecommitdiffstats
path: root/xmlIO.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-08-25 14:39:16 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-08-25 14:39:16 +0000
commitb212bbbc888234d3bd8d095b541854654314f6b3 (patch)
tree21faf7c482902804f307ee7764406cc5605354d8 /xmlIO.c
parent42766c0eea0fa40c7b721fa4c9cf56b4c484b4c7 (diff)
downloadandroid_external_libxml2-b212bbbc888234d3bd8d095b541854654314f6b3.tar.gz
android_external_libxml2-b212bbbc888234d3bd8d095b541854654314f6b3.tar.bz2
android_external_libxml2-b212bbbc888234d3bd8d095b541854654314f6b3.zip
handle Windows sepecific file://localhost/ semantic ... Daniel
* xmlIO.c: handle Windows sepecific file://localhost/ semantic ... Daniel
Diffstat (limited to 'xmlIO.c')
-rw-r--r--xmlIO.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmlIO.c b/xmlIO.c
index a3d73c34..1c2a1226 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -297,7 +297,11 @@ xmlFileOpen (const char *filename) {
}
if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost", 16))
+#if defined (_WIN32) && !defined(__CYGWIN__)
+ path = &filename[17];
+#else
path = &filename[16];
+#endif
else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
#if defined (_WIN32) && !defined(__CYGWIN__)
path = &filename[8];