diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 00:09:20 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 00:09:20 +0000 |
commit | 68d0a515d053af8215831b4b04e7fe7b8ca8b540 (patch) | |
tree | 694c9ee7eccd2e8851e0498d2573c22d73ab22ba | |
parent | ae6dd5d9c54ab52dfd0c9b25304e8a136ce19f91 (diff) |
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
-rw-r--r-- | include/services.h | 8 |
1 files 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 |