summaryrefslogtreecommitdiff
path: root/runxmlconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'runxmlconf.c')
-rw-r--r--runxmlconf.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/runxmlconf.c b/runxmlconf.c
index cef20f4..52d50d7 100644
--- a/runxmlconf.c
+++ b/runxmlconf.c
@@ -6,8 +6,11 @@
* daniel@veillard.com
*/
+#ifdef HAVE_CONFIG_H
#include "libxml.h"
+#else
#include <stdio.h>
+#endif
#ifdef LIBXML_XPATH_ENABLED
@@ -34,6 +37,10 @@ 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 */
@@ -383,7 +390,7 @@ xmlconfTestItem(xmlDocPtr doc, xmlNodePtr cur) {
if (xmlStrEqual(type, BAD_CAST "not-wf")) {
if (nstest == 0)
xmlconfTestNotWF((char *) id, (char *) filename, options);
- else
+ else
xmlconfTestNotNSWF((char *) id, (char *) filename, options);
} else if (xmlStrEqual(type, BAD_CAST "valid")) {
options |= XML_PARSE_DTDVALID;