diff options
author | pixel <pixel> | 2008-08-04 15:37:02 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-08-04 15:37:02 +0000 |
commit | c74c464c4526232902264c66e8b52ebfbcc71e1b (patch) | |
tree | 864a0a2eb192e93d26dcdfb641e23749c602f546 /src/plugin-luahandle.cc | |
parent | 6106ce4290152d0bf588bc97c0ef625f0a3006db (diff) |
Fixing the win32 backport.
Diffstat (limited to 'src/plugin-luahandle.cc')
-rw-r--r-- | src/plugin-luahandle.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugin-luahandle.cc b/src/plugin-luahandle.cc index a1cf4ea..7e6b675 100644 --- a/src/plugin-luahandle.cc +++ b/src/plugin-luahandle.cc @@ -1,5 +1,11 @@ #include <LuaHandle.h> +#ifndef WIN32 +#define WEAK __attribute__ ((weak)) +#else +#define WEAK +#endif + static void _init_plugin(Lua * L) { LuaInput::pushconstruct(L); LuaOutput::pushconstruct(L); @@ -9,7 +15,7 @@ static void _init_plugin(Lua * L) { extern "C" { -__attribute__ ((weak)) void init_plugin(Lua * L) { +WEAK void init_plugin(Lua * L) { _init_plugin(L); } |