From d2efdbf6bb91229d043303b1694fefae79ea6fe7 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 17 Feb 2018 17:12:26 +0000 Subject: Fix building on Windows (mostly). --- include/modules.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'include/modules.h') 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) #endif -- cgit v1.3.1-10-gc9f91