Permalink
Browse files

Fix compilation with Clang

Don't redefine vsnprintf if it is available
  • Loading branch information...
1 parent d2e6231 commit e306260f543aa4c47e8087b2eb013bb7586d801f @kwm81 kwm81 committed with veillard Nov 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/libxml.c
View
2 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

0 comments on commit e306260

Please sign in to comment.