summaryrefslogtreecommitdiff
path: root/src
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
parent6106ce4290152d0bf588bc97c0ef625f0a3006db (diff)
Fixing the win32 backport.
Diffstat (limited to 'src')
-rw-r--r--src/plugin-luaconfigfiles.cc8
-rw-r--r--src/plugin-luaftgl.cc8
-rw-r--r--src/plugin-luagl.cc8
-rw-r--r--src/plugin-luahandle.cc8
-rw-r--r--src/plugin-luahttp.cc8
-rw-r--r--src/plugin-lualibs.cc8
-rw-r--r--src/plugin-luaocci.cc8
-rw-r--r--src/plugin-luaregex.cc8
-rw-r--r--src/plugin-luasql.cc8
-rw-r--r--src/plugin-luatask.cc8
-rw-r--r--src/plugin-luaxml.cc8
11 files changed, 77 insertions, 11 deletions
diff --git a/src/plugin-luaconfigfiles.cc b/src/plugin-luaconfigfiles.cc
index 9df08ab..196fed1 100644
--- a/src/plugin-luaconfigfiles.cc
+++ b/src/plugin-luaconfigfiles.cc
@@ -1,12 +1,18 @@
#include <LuaConfigFile.h>
+#ifndef WIN32
+#define WEAK __attribute__ ((weak))
+#else
+#define WEAK
+#endif
+
static void _init_plugin(Lua * L) {
LuaConfigFile::pushstatics(L);
}
extern "C" {
-__attribute__ ((weak)) void init_plugin(Lua * L) {
+WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
diff --git a/src/plugin-luaftgl.cc b/src/plugin-luaftgl.cc
index 6cb0f0a..83f26f1 100644
--- a/src/plugin-luaftgl.cc
+++ b/src/plugin-luaftgl.cc
@@ -1,12 +1,18 @@
#include <LuaFTGL.h>
+#ifndef WIN32
+#define WEAK __attribute__ ((weak))
+#else
+#define WEAK
+#endif
+
static void _init_plugin(Lua * L) {
LuaFTFont::pushstatics(L);
}
extern "C" {
-__attribute__ ((weak)) void init_plugin(Lua * L) {
+WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
diff --git a/src/plugin-luagl.cc b/src/plugin-luagl.cc
index 34bdc2d..b319a85 100644
--- a/src/plugin-luagl.cc
+++ b/src/plugin-luagl.cc
@@ -1,5 +1,11 @@
#include <LuaGL.h>
+#ifndef WIN32
+#define WEAK __attribute__ ((weak))
+#else
+#define WEAK
+#endif
+
static void _init_plugin(Lua * L) {
luaopen_opengl(L);
L->pop();
@@ -7,7 +13,7 @@ static void _init_plugin(Lua * L) {
extern "C" {
-__attribute__ ((weak)) void init_plugin(Lua * L) {
+WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
diff --git a/src/plugin-luahandle.cc b/src/plugin-luahandle.cc
index a1cf4ea..7e6b675 100644
--- a/src/plugin-luahandle.cc
+++ b/src/plugin-luahandle.cc
@@ -1,5 +1,11 @@
#include <LuaHandle.h>
+#ifndef WIN32
+#define WEAK __attribute__ ((weak))
+#else
+#define WEAK
+#endif
+
static void _init_plugin(Lua * L) {
LuaInput::pushconstruct(L);
LuaOutput::pushconstruct(L);
@@ -9,7 +15,7 @@ static void _init_plugin(Lua * L) {
extern "C" {
-__attribute__ ((weak)) void init_plugin(Lua * L) {
+WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
diff --git a/src/plugin-luahttp.cc b/src/plugin-luahttp.cc
index ae7ee34..ef3a5f4 100644
--- a/src/plugin-luahttp.cc
+++ b/src/plugin-luahttp.cc
@@ -1,12 +1,18 @@
#include <LuaHttp.h>
+#ifndef WIN32
+#define WEAK __attribute__ ((weak))
+#else
+#define WEAK
+#endif
+
static void _init_plugin(Lua * L) {
LuaHttpResponse::pushstatics(L);
}
extern "C" {
-__attribute__ ((weak)) void init_plugin(Lua * L) {
+WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
diff --git a/src/plugin-lualibs.cc b/src/plugin-lualibs.cc
index 8233f7d..36b866d 100644
--- a/src/plugin-lualibs.cc
+++ b/src/plugin-lualibs.cc
@@ -1,12 +1,18 @@
#include <loadlualibs.h>
+#ifndef WIN32
+#define WEAK __attribute__ ((weak))
+#else
+#define WEAK
+#endif
+
static void _init_plugin(Lua * L) {
LoadLuaLibs(L);
}
extern "C" {
-__attribute__ ((weak)) void init_plugin(Lua * L) {
+WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
diff --git a/src/plugin-luaocci.cc b/src/plugin-luaocci.cc
index 841c6be..0cade24 100644
--- a/src/plugin-luaocci.cc
+++ b/src/plugin-luaocci.cc
@@ -1,12 +1,18 @@
#include <LuaOCCI.h>
+#ifndef WIN32
+#define WEAK __attribute__ ((weak))
+#else
+#define WEAK
+#endif
+
static void _init_plugin(Lua * L) {
LuaOCCI_pushstatics(L);
}
extern "C" {
-__attribute__ ((weak)) void init_plugin(Lua * L) {
+WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
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);
}
diff --git a/src/plugin-luasql.cc b/src/plugin-luasql.cc
index 4f94d78..19588fe 100644
--- a/src/plugin-luasql.cc
+++ b/src/plugin-luasql.cc
@@ -1,12 +1,18 @@
#include <LuaSQL.h>
+#ifndef WIN32
+#define WEAK __attribute__ ((weak))
+#else
+#define WEAK
+#endif
+
static void _init_plugin(Lua * L) {
LuaSQLConnection::pushstatics(L);
}
extern "C" {
-__attribute__ ((weak)) void init_plugin(Lua * L) {
+WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
diff --git a/src/plugin-luatask.cc b/src/plugin-luatask.cc
index dce08f0..3fc2b3f 100644
--- a/src/plugin-luatask.cc
+++ b/src/plugin-luatask.cc
@@ -1,12 +1,18 @@
#include <LuaTask.h>
+#ifndef WIN32
+#define WEAK __attribute__ ((weak))
+#else
+#define WEAK
+#endif
+
static void _init_plugin(Lua * L) {
LuaTaskMan::pushstatics(L);
}
extern "C" {
-__attribute__ ((weak)) void init_plugin(Lua * L) {
+WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
diff --git a/src/plugin-luaxml.cc b/src/plugin-luaxml.cc
index 0e3ad06..b6ad423 100644
--- a/src/plugin-luaxml.cc
+++ b/src/plugin-luaxml.cc
@@ -1,5 +1,11 @@
#include <LuaXML.h>
+#ifndef WIN32
+#define WEAK __attribute__ ((weak))
+#else
+#define WEAK
+#endif
+
static void _init_plugin(Lua * L) {
luaopen_xml(L);
L->pop();
@@ -7,7 +13,7 @@ static void _init_plugin(Lua * L) {
extern "C" {
-__attribute__ ((weak)) void init_plugin(Lua * L) {
+WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}