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