summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-01-30 19:02:09 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-01-30 19:02:09 +0000
commite04fbb1e277d6650edf52bce332676d1999e6789 (patch)
treee6b8f9758ca2fd3cf0dd8a8c5770636e23c2c278 /tests
parentcea555bf1eb259d9fc3d28c212d212fafa96caab (diff)
downloadlibxslt-e04fbb1e277d6650edf52bce332676d1999e6789.tar.gz
libxslt-e04fbb1e277d6650edf52bce332676d1999e6789.tar.bz2
libxslt-e04fbb1e277d6650edf52bce332676d1999e6789.zip
applied plugin patch for Windows by Joel Reed Daniel
* tests/plugins/testplugin.c win32/Makefile.msvc win32/configure.js: applied plugin patch for Windows by Joel Reed Daniel
Diffstat (limited to 'tests')
-rw-r--r--tests/plugins/testplugin.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/plugins/testplugin.c b/tests/plugins/testplugin.c
index eba609fc..68ffa980 100644
--- a/tests/plugins/testplugin.c
+++ b/tests/plugins/testplugin.c
@@ -9,7 +9,6 @@
* daniel@veillard.com
*/
-#define IN_LIBXSLT
#include <libxslt/libxslt.h>
#ifdef WITH_MODULES
@@ -33,6 +32,14 @@
#define XSLT_TESTPLUGIN_URL "http://xmlsoft.org/xslt/testplugin"
+/* make sure init function is exported on win32 */
+#if defined(_WIN32)
+ #define PLUGINPUBFUN __declspec(dllexport)
+#else
+ #define PLUGINPUBFUN
+#endif
+
+
/************************************************************************
* *
* Test plugin module http://xmlsoft.org/xslt/testplugin *
@@ -311,7 +318,7 @@ xsltExtStyleShutdownTest(xsltStylesheetPtr style ATTRIBUTE_UNUSED,
*/
void
-XSLTPUBFUN xmlsoft_org_xslt_testplugin_init(void)
+PLUGINPUBFUN xmlsoft_org_xslt_testplugin_init(void)
{
xsltRegisterExtModuleFull((const xmlChar *) XSLT_TESTPLUGIN_URL,
xsltExtInitTest, xsltExtShutdownTest,