From 6f85bc57d5e91adde1335652cc9aa0b32d60191c Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 23 Mar 2009 11:08:05 -0700 Subject: Fixing externals for the dll versions. --- src/plugin-luacd.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/plugin-luacd.cc') diff --git a/src/plugin-luacd.cc b/src/plugin-luacd.cc index 5b10abc..f418f26 100644 --- a/src/plugin-luacd.cc +++ b/src/plugin-luacd.cc @@ -1,6 +1,12 @@ #include #include +#ifndef WIN32 +#define WEAK __attribute__ ((weak)) +#else +#define WEAK +#endif + static void _init_plugin(Lua * L) { static bool done = false; if (done) return; @@ -11,6 +17,10 @@ static void _init_plugin(Lua * L) { extern "C" { +WEAK void init_plugin(Lua * L) { + _init_plugin(L); +} + void luacd_init(Lua * L) { _init_plugin(L); } -- cgit v1.2.3