aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2012-05-23 15:52:45 +0800
committerDaniel Veillard <veillard@redhat.com>2012-05-23 15:52:45 +0800
commit22030ef8888579b9ae8d8a63367e31b201eef4b5 (patch)
treec55097a4ee98e215774d8b57912b5c19af8d43e1 /python
parentee8f1d4cda8dc1a6f2c515fe234f7bc89cdc9f80 (diff)
downloadandroid_external_libxml2-22030ef8888579b9ae8d8a63367e31b201eef4b5.tar.gz
android_external_libxml2-22030ef8888579b9ae8d8a63367e31b201eef4b5.tar.bz2
android_external_libxml2-22030ef8888579b9ae8d8a63367e31b201eef4b5.zip
Restore code for Windows compilation
Try to keep as close to rc1 but still allow the change from Roumen for mingw
Diffstat (limited to 'python')
-rw-r--r--python/libxml.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/libxml.c b/python/libxml.c
index ea4998bc..9dabf898 100644
--- a/python/libxml.c
+++ b/python/libxml.c
@@ -28,7 +28,9 @@
#include "libxml_wrap.h"
#include "libxml2-py.h"
-#if defined(WITH_TRIO)
+#if defined(_MSC_VER) && !defined(vsnprintf)
+#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
+#elif defined(WITH_TRIO) && !defined(vsnprintf)
#include "trio.h"
#define vsnprintf trio_vsnprintf
#endif