From 9e9ec919ec2e10ae262ec6402f1af3a0171d5444 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Thu, 6 Nov 2008 23:50:03 +0000 Subject: Add proper constructor, move Module::name to be string.. still doesn't compile, of course, as this still needs a lot more renovation. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1568 5417fbe8-f217-4b02-8779-1006273d7864 --- include/services.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/services.h') diff --git a/include/services.h b/include/services.h index 347e48d3d..f1113fbfc 100644 --- a/include/services.h +++ b/include/services.h @@ -189,7 +189,7 @@ extern int strncasecmp(const char *, const char *, size_t); */ #ifdef _WIN32 #define MODULE_INIT(y) \ - extern "C" DllExport Module *init_module(const std::string &creator) \ + extern "C" DllExport Module *init_module(const std::string &modname, const std::string &creator) \ { \ return new y(creator); \ } \ @@ -205,7 +205,7 @@ extern int strncasecmp(const char *, const char *, size_t); } #else #define MODULE_INIT(y) \ - extern "C" DllExport Module *init_module(const std::string &creator) \ + extern "C" DllExport Module *init_module(const std::string &modname, const std::string &creator) \ { \ return new y(creator); \ } -- cgit