From b65fb065b5a77aeea056f88e1b8d96ec8fbea47c Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 19 Apr 2014 17:10:01 +0200 Subject: Fix undefined symbol error on module load if compiled with Clang 3.4 Fixes issue #803 reported by @SaberUK --- include/caller.h | 18 +++++++++--------- include/modules.h | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/caller.h b/include/caller.h index 64b37611f..05049df8b 100644 --- a/include/caller.h +++ b/include/caller.h @@ -136,7 +136,7 @@ template class CoreExport caller0 : public caller< Handler : caller< HandlerBase0 >::caller(initial) { } - virtual ReturnType operator() () + ReturnType operator() () { return this->target->Call(); } @@ -149,7 +149,7 @@ template class CoreExport caller1 : publi : caller< HandlerBase1 >(initial) { } - virtual ReturnType operator() (Param1 param1) + ReturnType operator() (Param1 param1) { return this->target->Call(param1); } @@ -162,7 +162,7 @@ template class CoreExpor : caller< HandlerBase2 >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2) + ReturnType operator() (Param1 param1, Param2 param2) { return this->target->Call(param1, param2); } @@ -175,7 +175,7 @@ template >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3) { return this->target->Call(param1, param2, param3); } @@ -188,7 +188,7 @@ template >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4) { return this->target->Call(param1, param2, param3, param4); } @@ -201,7 +201,7 @@ template >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5) { return this->target->Call(param1, param2, param3, param4, param5); } @@ -214,7 +214,7 @@ template >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6) { return this->target->Call(param1, param2, param3, param4, param5, param6); } @@ -227,7 +227,7 @@ template >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6, Param7 param7) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6, Param7 param7) { return this->target->Call(param1, param2, param3, param4, param5, param6, param7); } @@ -240,7 +240,7 @@ template >(initial) { } - virtual ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6, Param7 param7, Param8 param8) + ReturnType operator() (Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5, Param6 param6, Param7 param7, Param8 param8) { return this->target->Call(param1, param2, param3, param4, param5, param6, param7, param8); } diff --git a/include/modules.h b/include/modules.h index c0d852b09..eef8c61c9 100644 --- a/include/modules.h +++ b/include/modules.h @@ -116,7 +116,7 @@ struct ModResult { * and numerical comparisons in preprocessor macros if they wish to support * multiple versions of InspIRCd in one file. */ -#define INSPIRCD_VERSION_API 7 +#define INSPIRCD_VERSION_API 8 /** * This #define allows us to call a method in all -- cgit v1.2.3