Commit 0da41666 authored by Daniel Veillard's avatar Daniel Veillard

applied a portability patch from Emelyanov Alexey Daniel

* xmlIO.c: applied a portability patch from Emelyanov Alexey
Daniel
parent 2937b3ac
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
......
......@@ -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 @@ xmlWrapOpenUtf8(const char *path,int mode)
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 @@ xmlWrapStatUtf8(const char *path,struct stat *info)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment