diff options
| author | 2018-02-17 17:12:26 +0000 | |
|---|---|---|
| committer | 2018-02-17 17:12:26 +0000 | |
| commit | d2efdbf6bb91229d043303b1694fefae79ea6fe7 (patch) | |
| tree | bc256da2d24eaf978af4a04cd45f79045c0b745d /include/modules.h | |
| parent | Import the anticaps module from inspircd-extras. (diff) | |
| download | inspircd++-d2efdbf6bb91229d043303b1694fefae79ea6fe7.tar.gz inspircd++-d2efdbf6bb91229d043303b1694fefae79ea6fe7.tar.bz2 inspircd++-d2efdbf6bb91229d043303b1694fefae79ea6fe7.zip | |
Fix building on Windows (mostly).
Diffstat (limited to 'include/modules.h')
| -rw-r--r-- | include/modules.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/modules.h b/include/modules.h index c6b10cad9..a5e546149 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1216,35 +1216,13 @@ struct AllModuleList { * and functions needed to make a module loadable by the OS. * It defines the class factory and external init_module function. */ -#ifdef _WIN32 - #define MODULE_INIT(y) \ extern "C" DllExport Module * MODULE_INIT_SYM() \ { \ return new y; \ } \ - BOOLEAN WINAPI DllMain(HINSTANCE hDllHandle, DWORD nReason, LPVOID Reserved) \ - { \ - switch ( nReason ) \ - { \ - case DLL_PROCESS_ATTACH: \ - case DLL_PROCESS_DETACH: \ - break; \ - } \ - return TRUE; \ - } \ extern "C" DllExport const char inspircd_src_version[] = INSPIRCD_VERSION; -#else - -#define MODULE_INIT(y) \ - extern "C" DllExport Module * MODULE_INIT_SYM() \ - { \ - return new y; \ - } \ - extern "C" DllExport const char inspircd_src_version[] = INSPIRCD_VERSION; -#endif - #define COMMAND_INIT(c) MODULE_INIT(CommandModule<c>) #endif |
