From 9471ad4d7a894367d340d677fb9ab084e023570a Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 14 Jun 2007 19:28:29 +0000 Subject: Windows build stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7309 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_filter_pcre.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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; } + -- cgit v1.2.3