Commit c3b1d09b authored by Roumen Petrov's avatar Roumen Petrov Committed by Daniel Veillard

clean redefinition of {v}snprintf in C-source

as those from *config.h are preferable (e.g. win32config.h)
parent 1f0453f7
......@@ -28,9 +28,7 @@
#include "libxml_wrap.h"
#include "libxml2-py.h"
#if defined(_MSC_VER) && !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
......
......@@ -35,10 +35,6 @@
static FILE *logfile = NULL;
static int verbose = 0;
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
#define vsnprintf _vsnprintf
#define snprintf _snprintf
#endif
/************************************************************************
* *
......
......@@ -192,10 +192,6 @@ static void globfree(glob_t *pglob) {
}
}
#if !defined(__MINGW32__)
#define vsnprintf _vsnprintf
#define snprintf _snprintf
#endif
#else
#include <glob.h>
#endif
......
......@@ -34,10 +34,6 @@ static int verbose = 0;
#define NB_EXPECTED_ERRORS 15
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
#define vsnprintf _vsnprintf
#define snprintf _snprintf
#endif
const char *skipped_tests[] = {
/* http://lists.w3.org/Archives/Public/public-xml-testsuite/2008Jul/0000.html */
......
......@@ -16,9 +16,6 @@
#include <libxml/xmlerror.h>
#include <libxml/relaxng.h>
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
#define snprintf _snprintf
#endif
static int testlibxml2(void);
static int test_module(const char *module);
......@@ -146,10 +146,6 @@ static void globfree(glob_t *pglob) {
}
}
#if !defined(__MINGW32__)
#define vsnprintf _vsnprintf
#define snprintf _snprintf
#endif
#else
#include <glob.h>
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment