summaryrefslogtreecommitdiff
path: root/src/plugin-luaregex.cc
diff options
context:
space:
mode:
authorpixel <pixel>2008-08-04 15:37:02 +0000
committerpixel <pixel>2008-08-04 15:37:02 +0000
commitc74c464c4526232902264c66e8b52ebfbcc71e1b (patch)
tree864a0a2eb192e93d26dcdfb641e23749c602f546 /src/plugin-luaregex.cc
parent6106ce4290152d0bf588bc97c0ef625f0a3006db (diff)
Fixing the win32 backport.
Diffstat (limited to 'src/plugin-luaregex.cc')
-rw-r--r--src/plugin-luaregex.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugin-luaregex.cc b/src/plugin-luaregex.cc
index 5f3a59e..13be506 100644
--- a/src/plugin-luaregex.cc
+++ b/src/plugin-luaregex.cc
@@ -1,12 +1,18 @@
#include <LuaRegex.h>
+#ifndef WIN32
+#define WEAK __attribute__ ((weak))
+#else
+#define WEAK
+#endif
+
static void _init_plugin(Lua * L) {
LuaRegex::pushstatics(L);
}
extern "C" {
-__attribute__ ((weak)) void init_plugin(Lua * L) {
+WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}