summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugin-luaiup.cc8
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);