summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/extra/m_filter_pcre.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/extra/m_filter_pcre.cpp b/src/modules/extra/m_filter_pcre.cpp
index e25fd06bb..ff9c3d0f9 100644
--- a/src/modules/extra/m_filter_pcre.cpp
+++ b/src/modules/extra/m_filter_pcre.cpp
@@ -23,6 +23,10 @@
/* $LinkerFlags: exec("pcre-config --libs") rpath("pcre-config --libs") -lpcre */
/* $ModDep: m_filter.h */
+#ifdef WINDOWS
+#pragma comment(lib, "pcre.lib")
+#endif
+
class PCREFilter : public FilterResult
{
public:
@@ -194,7 +198,8 @@ class ModuleFilterPCREFactory : public ModuleFactory
};
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
{
return new ModuleFilterPCREFactory;
}
+