aboutsummaryrefslogtreecommitdiffstats
path: root/xmlIO.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-08-03 12:06:36 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-08-03 12:06:36 +0000
commit50f3437111a6428b4852740e83db4848b0b09a97 (patch)
treea2b0d7c54535d7cce9be574eba3474957fa549f2 /xmlIO.c
parent9f4eb911591bff815373d3e272605f2bebe4f087 (diff)
downloadandroid_external_libxml2-50f3437111a6428b4852740e83db4848b0b09a97.tar.gz
android_external_libxml2-50f3437111a6428b4852740e83db4848b0b09a97.tar.bz2
android_external_libxml2-50f3437111a6428b4852740e83db4848b0b09a97.zip
applied Win32 Facelift No.2 patches from Igor Zlatkovic for Windows/MSC
* DOCBparser.c Makefile.am nanohttp.c parser.c testHTML.c testSAX.c xmlIO.c xmllint.c include/win32config.h include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h include/libxml/xmlwin32version.h.in win32/README.MSDev win32/dsp/*: applied Win32 Facelift No.2 patches from Igor Zlatkovic for Windows/MSC Daniel
Diffstat (limited to 'xmlIO.c')
-rw-r--r--xmlIO.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmlIO.c b/xmlIO.c
index b4f2efb4..c21a168e 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -35,7 +35,11 @@
/* Figure a portable way to know if a file is a directory. */
#ifndef HAVE_STAT
# ifdef HAVE__STAT
-# define stat(x,y) _stat(x,y)
+ /* MS C library seems to define stat and _stat. The definition
+ is identical. Still, mapping them to each other causes a warning. */
+# ifndef _MSC_VER
+# define stat(x,y) _stat(x,y)
+# endif
# define HAVE_STAT
# endif
#endif