1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-05 19:01:18 +03:00

use mingw C99 compatible functions {v}snprintf instead those from MSVC runtime

This commit is contained in:
Roumen Petrov
2012-05-20 16:07:54 +03:00
committed by Daniel Veillard
parent f27c6683e6
commit 978ff224b2
6 changed files with 17 additions and 35 deletions

View File

@ -28,9 +28,7 @@
#include "libxml_wrap.h"
#include "libxml2-py.h"
#if (defined(_MSC_VER) || defined(__MINGW32__)) && !defined(vsnprintf)
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
#elif defined(WITH_TRIO) && !defined(vsnprintf)
#if defined(WITH_TRIO)
#include "trio.h"
#define vsnprintf trio_vsnprintf
#endif