Added changed as proposed on the mailing list by venkat naidu in order to
* tapi.c win32/Makefile.*: Added changed as proposed on
the mailing list by venkat naidu in order to compile
testapi.c on windows.
diff --git a/ChangeLog b/ChangeLog
index e8e7479..6afe816 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Feb 1 12:21:08 CET 2006
+
+ * tapi.c win32/Makefile.*: Added changed as proposed on
+ the mailing list by venkat naidu in order to compile
+ testapi.c on windows.
+
Thu Jan 19 09:57:28 CET 2006 Daniel Veillard <daniel@veillard.com>
* configure.in xml2-config.in: trying to fix windows/configure
diff --git a/testapi.c b/testapi.c
index 298a3f1..c95cc5c 100644
--- a/testapi.c
+++ b/testapi.c
@@ -18,6 +18,10 @@
#include <libxml/xmlerror.h>
#include <libxml/relaxng.h>
+#if defined(_WIN32) && !defined(__CYGWIN__)
+#define snprintf _snprintf
+#endif
+
static int testlibxml2(void);
static int test_module(const char *module);
diff --git a/win32/Makefile.bcb b/win32/Makefile.bcb
index 6603d2a..fa553e9 100644
--- a/win32/Makefile.bcb
+++ b/win32/Makefile.bcb
@@ -215,8 +215,9 @@
$(BINDIR)\testSchemas.exe\
$(BINDIR)\testURI.exe\
$(BINDIR)\testXPath.exe\
- $(BINDIR)\runtest.exe\
- $(BINDIR)\runsuite.exe
+ $(BINDIR)\runtest.exe\
+ $(BINDIR)\runsuite.exe\
+ $(BINDIR)\testapi.exe
!if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls" || "$(WITH_THREADS)" == "native"
diff --git a/win32/Makefile.mingw b/win32/Makefile.mingw
index 4c3d018..f41ce6d 100644
--- a/win32/Makefile.mingw
+++ b/win32/Makefile.mingw
@@ -212,7 +212,9 @@
$(BINDIR)/testURI.exe\
$(BINDIR)/testXPath.exe\
$(BINDIR)/runtest.exe\
- $(BINDIR)/runsuite.exe
+ $(BINDIR)/runsuite.exe\
+ $(BINDIR)/testapi.exe
+
ifeq ($(WITH_THREADS),yes)
UTILS += $(BINDIR)/testThreadsWin32.exe
endif
diff --git a/win32/Makefile.msvc b/win32/Makefile.msvc
index 0c0a41b..35f4a80 100644
--- a/win32/Makefile.msvc
+++ b/win32/Makefile.msvc
@@ -197,7 +197,8 @@
$(BINDIR)\testURI.exe\
$(BINDIR)\testXPath.exe\
$(BINDIR)\runtest.exe\
- $(BINDIR)\runsuite.exe
+ $(BINDIR)\runsuite.exe\
+ $(BINDIR)\testapi.exe
!if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls" || "$(WITH_THREADS)" == "native"
UTILS = $(UTILS) $(BINDIR)\testThreadsWin32.exe