From 68d0a515d053af8215831b4b04e7fe7b8ca8b540 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Sat, 8 Nov 2008 00:09:20 +0000 Subject: [PATCH] Correct MODULE_INIT macro to account for new parameter. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1576 5417fbe8-f217-4b02-8779-1006273d7864 --- include/services.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/services.h b/include/services.h index f1113fbfc..ecf514fe0 100644 --- a/include/services.h +++ b/include/services.h @@ -188,10 +188,10 @@ extern int strncasecmp(const char *, const char *, size_t); * It defines the class factory and external init_module function. */ #ifdef _WIN32 - #define MODULE_INIT(y) \ + #define MODULE_INIT(x, y) \ extern "C" DllExport Module *init_module(const std::string &modname, const std::string &creator) \ { \ - return new y(creator); \ + return new y(x, creator); \ } \ BOOLEAN WINAPI DllMain(HINSTANCE hDllHandle, DWORD nReason, LPVOID Reserved) \ { \ @@ -204,10 +204,10 @@ extern int strncasecmp(const char *, const char *, size_t); return TRUE; \ } #else - #define MODULE_INIT(y) \ + #define MODULE_INIT(x, y) \ extern "C" DllExport Module *init_module(const std::string &modname, const std::string &creator) \ { \ - return new y(creator); \ + return new y(x, creator); \ } #endif