summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/modules.h22
-rw-r--r--include/modules/shun.h2
-rw-r--r--include/modules/sql.h2
3 files changed, 2 insertions, 24 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
diff --git a/include/modules/shun.h b/include/modules/shun.h
index f2bc4eea5..9ce547e2d 100644
--- a/include/modules/shun.h
+++ b/include/modules/shun.h
@@ -23,7 +23,7 @@
/** Shun class
*/
-class CoreExport Shun : public XLine
+class Shun : public XLine
{
public:
/** Create a Shun.
diff --git a/include/modules/sql.h b/include/modules/sql.h
index 01adbb42e..14cd60a56 100644
--- a/include/modules/sql.h
+++ b/include/modules/sql.h
@@ -42,7 +42,7 @@ namespace SQL
enum ErrorCode
{
/** No error has occurred. */
- NO_ERROR,
+ SUCCESS,
/** The database identifier is invalid. */
BAD_DBID,