]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_regex_pcre.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / extra / m_regex_pcre.cpp
index ca6bdfb950f3beefca190fb2a2aede37dd9adddf..cba234c8cae74977c9930bbfde1a462ea63649f0 100644 (file)
@@ -27,7 +27,7 @@
 /* $CompileFlags: exec("pcre-config --cflags") */
 /* $LinkerFlags: exec("pcre-config --libs") rpath("pcre-config --libs") -lpcre */
 
-#ifdef WINDOWS
+#ifdef _WIN32
 # pragma comment(lib, "libpcre.lib")
 #endif
 
@@ -35,7 +35,7 @@ class PCREException : public ModuleException
 {
 public:
        PCREException(const std::string& rx, const std::string& error, int erroffset)
-               : ModuleException(std::string("Error in regex ") + rx + " at offset " + ConvToStr(erroffset) + ": " + error)
+               : ModuleException("Error in regex " + rx + " at offset " + ConvToStr(erroffset) + ": " + error)
        {
        }
 };