summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoop Mast <kwm@freebsd.org>2010-11-03 15:10:26 (GMT)
committerDaniel Veillard <veillard@redhat.com>2010-11-03 15:10:26 (GMT)
commite306260f543aa4c47e8087b2eb013bb7586d801f (patch)
treee259dd0712195caf1767f6a60749e063c8326c1a
parentd2e62311cd15651e68f921167c7fcf05b19378f9 (diff)
downloadlibxml2-e306260f543aa4c47e8087b2eb013bb7586d801f.tar.gz
libxml2-e306260f543aa4c47e8087b2eb013bb7586d801f.tar.xz
Fix compilation with Clang
Don't redefine vsnprintf if it is available
-rw-r--r--python/libxml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/libxml.c b/python/libxml.c
index 3f01761..b0043e6 100644
--- a/python/libxml.c
+++ b/python/libxml.c
@@ -30,7 +30,7 @@
#if (defined(_MSC_VER) || defined(__MINGW32__)) && !defined(vsnprintf)
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
-#elif defined(WITH_TRIO)
+#elif defined(WITH_TRIO) && !defined(vsnprintf)
#include "trio.h"
#define vsnprintf trio_vsnprintf
#endif