summaryrefslogtreecommitdiff
path: root/python/libxml.c
diff options
context:
space:
mode:
authorKoop Mast <kwm@freebsd.org>2010-11-03 16:10:26 +0100
committerDaniel Veillard <veillard@redhat.com>2010-11-03 16:10:26 +0100
commite306260f543aa4c47e8087b2eb013bb7586d801f (patch)
treee259dd0712195caf1767f6a60749e063c8326c1a /python/libxml.c
parentd2e62311cd15651e68f921167c7fcf05b19378f9 (diff)
downloadlibxml2-e306260f543aa4c47e8087b2eb013bb7586d801f.tar.gz
Fix compilation with Clang
Don't redefine vsnprintf if it is available
Diffstat (limited to 'python/libxml.c')
-rw-r--r--python/libxml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/libxml.c b/python/libxml.c
index 3f01761f..b0043e67 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