mirror of
https://github.com/anope/anope.git
synced 2026-07-10 12:43:13 +02:00
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
This commit is contained in:
+4
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user