summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-09-26 15:40:13 -0700
committerPixel <pixel@nobis-crew.org>2008-09-26 15:40:13 -0700
commit2065f585767a877518fd16b72338ca39c9251e37 (patch)
tree5f11ef6eeabdec73079f624ba12628df91ac69ef
parent441613bf23533f272722d88b161328abe2a0993d (diff)
Adding the NO_DLL define for MSVC built-in compilation.
-rw-r--r--src/plugin-luaconfigfiles.cc2
-rw-r--r--src/plugin-luahandle.cc2
-rw-r--r--src/plugin-luahttp.cc2
-rw-r--r--src/plugin-lualibs.cc2
-rw-r--r--src/plugin-luaregex.cc2
-rw-r--r--src/plugin-luasql.cc2
-rw-r--r--src/plugin-luatask.cc2
-rw-r--r--src/plugin-luaxml.cc2
8 files changed, 16 insertions, 0 deletions
diff --git a/src/plugin-luaconfigfiles.cc b/src/plugin-luaconfigfiles.cc
index 32f6130..5b7ace8 100644
--- a/src/plugin-luaconfigfiles.cc
+++ b/src/plugin-luaconfigfiles.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 luaconfigfiles_init(Lua * L) {
_init_plugin(L);
diff --git a/src/plugin-luahandle.cc b/src/plugin-luahandle.cc
index 05d9fa9..9049311 100644
--- a/src/plugin-luahandle.cc
+++ b/src/plugin-luahandle.cc
@@ -18,9 +18,11 @@ static void _init_plugin(Lua * L) {
extern "C" {
+#ifndef NO_DLL
WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
+#endif
void luahandle_init(Lua * L) {
_init_plugin(L);
diff --git a/src/plugin-luahttp.cc b/src/plugin-luahttp.cc
index dd780ea..4304f24 100644
--- a/src/plugin-luahttp.cc
+++ b/src/plugin-luahttp.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 luahttp_init(Lua * L) {
_init_plugin(L);
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);
diff --git a/src/plugin-luaregex.cc b/src/plugin-luaregex.cc
index 739d8f9..5bb9f41 100644
--- a/src/plugin-luaregex.cc
+++ b/src/plugin-luaregex.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 luaregex_init(Lua * L) {
_init_plugin(L);
diff --git a/src/plugin-luasql.cc b/src/plugin-luasql.cc
index 84350e7..0f38fb6 100644
--- a/src/plugin-luasql.cc
+++ b/src/plugin-luasql.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 luasql_init(Lua * L) {
_init_plugin(L);
diff --git a/src/plugin-luatask.cc b/src/plugin-luatask.cc
index f6b29d3..b1b8e3d 100644
--- a/src/plugin-luatask.cc
+++ b/src/plugin-luatask.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 luatask_init(Lua * L) {
_init_plugin(L);
diff --git a/src/plugin-luaxml.cc b/src/plugin-luaxml.cc
index cee1132..e6e579d 100644
--- a/src/plugin-luaxml.cc
+++ b/src/plugin-luaxml.cc
@@ -16,9 +16,11 @@ static void _init_plugin(Lua * L) {
extern "C" {
+#ifndef NO_DLL
WEAK void init_plugin(Lua * L) {
_init_plugin(L);
}
+#endif
void luaxml_init(Lua * L) {
_init_plugin(L);