diff options
Diffstat (limited to 'src/plugin-luatask.cc')
-rw-r--r-- | src/plugin-luatask.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugin-luatask.cc b/src/plugin-luatask.cc index dce08f0..3fc2b3f 100644 --- a/src/plugin-luatask.cc +++ b/src/plugin-luatask.cc @@ -1,12 +1,18 @@ #include <LuaTask.h> +#ifndef WIN32 +#define WEAK __attribute__ ((weak)) +#else +#define WEAK +#endif + static void _init_plugin(Lua * L) { LuaTaskMan::pushstatics(L); } extern "C" { -__attribute__ ((weak)) void init_plugin(Lua * L) { +WEAK void init_plugin(Lua * L) { _init_plugin(L); } |