diff options
| author | 2013-09-08 16:54:33 +0200 | |
|---|---|---|
| committer | 2013-09-08 16:54:33 +0200 | |
| commit | fabe111fb9e37c86beeecc773b9ad03c7046ccbf (patch) | |
| tree | eb8a3f8db16f25f1283e14731aff3688a69edf99 /include | |
| parent | Fix compile warnings as seen on g++ 4.4.7 (diff) | |
Fix module loading in PURE_STATIC builds
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/modules.h b/include/modules.h index e81f9465c..118d9ea1c 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1380,11 +1380,7 @@ struct AllModuleList { }; #define MODULE_INIT(x) static Module* MK_ ## x() { return new x; } \ - static const AllModuleList PREP_ ## x(&MK_ ## x, MODNAMESTR); - -#define MODNAMESTR MODNAMESTR_FN_2(MODNAME) -#define MODNAMESTR_FN_2(x) MODNAMESTR_FN_1(x) -#define MODNAMESTR_FN_1(x) #x + static const AllModuleList PREP_ ## x(&MK_ ## x, MODNAME ".so"); #else |
