diff options
author | Pixel <pixel@nobis-crew.org> | 2009-11-08 03:44:10 +0100 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-11-08 03:44:10 +0100 |
commit | b2d671ad676ee7f5f053a3f388d2ea2c3d808b3b (patch) | |
tree | 84a4cd7a218f25fdb37413af7e86dac0ba45938d | |
parent | 749a50a00247eb06fb3b51302e1e2285dbfc2bad (diff) |
Fixup for lua-interface.light.exe
-rw-r--r-- | src/plugin-luaiup.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugin-luaiup.cc b/src/plugin-luaiup.cc index 6c9b13d..5c53608 100644 --- a/src/plugin-luaiup.cc +++ b/src/plugin-luaiup.cc @@ -15,6 +15,10 @@ #include <imlua.h> #include <cdluaim.h> +#ifdef FROM_LUAINTERFACE +#define NO_DLL +#endif + #ifndef WIN32 #define WEAK __attribute__ ((weak)) #else @@ -37,10 +41,12 @@ static void _init_plugin(Lua * L) { } extern "C" { - + +#ifndef NO_DLL WEAK void init_plugin(Lua * L) { _init_plugin(L); } +#endif void luaiup_init(Lua * L) { _init_plugin(L); |