summaryrefslogtreecommitdiff
path: root/src/plugin-luaocci.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin-luaocci.cc')
-rw-r--r--src/plugin-luaocci.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugin-luaocci.cc b/src/plugin-luaocci.cc
index 8d9377e..841c6be 100644
--- a/src/plugin-luaocci.cc
+++ b/src/plugin-luaocci.cc
@@ -1,9 +1,17 @@
#include <LuaOCCI.h>
+static void _init_plugin(Lua * L) {
+ LuaOCCI_pushstatics(L);
+}
+
extern "C" {
-void init_plugin(Lua * L) {
- LuaOCCI_pushstatics(L);
+__attribute__ ((weak)) void init_plugin(Lua * L) {
+ _init_plugin(L);
+}
+
+void luaocci_init(Lua * L) {
+ _init_plugin(L);
}
}