summaryrefslogtreecommitdiff
path: root/src/plugin-lualibs.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin-lualibs.cc')
-rw-r--r--src/plugin-lualibs.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugin-lualibs.cc b/src/plugin-lualibs.cc
index d14dc30..5a5de03 100644
--- a/src/plugin-lualibs.cc
+++ b/src/plugin-lualibs.cc
@@ -15,9 +15,11 @@ static void _init_plugin(Lua * L) {
extern "C" {
+#ifndef NO_DLL
WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
+#endif
void lualibs_init(Lua * L) {
_init_plugin(L);