applied a portability patch from Emelyanov Alexey Daniel

* xmlIO.c: applied a portability patch from Emelyanov Alexey
Daniel
diff --git a/ChangeLog b/ChangeLog
index 63cbed8..a28408f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Oct 10 11:05:59 CEST 2006 Daniel Veillard <daniel@veillard.com>
+
+	* xmlIO.c: applied a portability patch from Emelyanov Alexey
+
 Tue Oct 10 10:52:01 CEST 2006 Daniel Veillard <daniel@veillard.com>
 
 	* parser.c: applied and slightly modified a patch from Michael Day to 
diff --git a/xmlIO.c b/xmlIO.c
index 89692f2..25f3bb1 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -52,7 +52,9 @@
 #  endif
 #else
 #  ifdef HAVE__STAT
+#    if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
 #      define stat _stat
+#    endif
 #  endif
 #endif
 #ifdef HAVE_STAT
@@ -598,7 +600,7 @@
        fd = _wfopen(wPath, mode ? L"wb" : L"rb");
        xmlFree(wPath);
     }
-    // maybe path in native encoding
+    /* maybe path in native encoding */
     if(fd == NULL)
        fd = fopen(path, mode ? "wb" : "rb");
 
@@ -626,7 +628,7 @@
        retval = _wstat(wPath,info);
        xmlFree(wPath);
     }
-    // maybe path in native encoding
+    /* maybe path in native encoding */
     if(retval < 0)
        retval = stat(path,info);
     return retval;