summarylogtreecommitdiffstats
path: root/luacpp.patch
diff options
context:
space:
mode:
authorEduardo Bart2016-08-03 15:10:30 -0300
committerEduardo Bart2016-08-03 15:10:30 -0300
commit8976c03dea76b995b68a4a0340d3edbf55e82f8c (patch)
tree6da81d0ba01ae4eadbc31f1ecbf04e5c71f62dff /luacpp.patch
downloadaur-8976c03dea76b995b68a4a0340d3edbf55e82f8c.tar.gz
first commit
Diffstat (limited to 'luacpp.patch')
-rw-r--r--luacpp.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/luacpp.patch b/luacpp.patch
new file mode 100644
index 000000000000..3a2e83cd1154
--- /dev/null
+++ b/luacpp.patch
@@ -0,0 +1,32 @@
+diff -crB a/luaconf.h b/luaconf.h
+*** a/luaconf.h 2012-08-18 13:49:21.807416507 -0300
+--- b/luaconf.h 2012-08-18 13:51:41.487416022 -0300
+***************
+*** 154,167 ****
+--- 154,179 ----
+ #if defined(LUA_BUILD_AS_DLL)
+
+ #if defined(LUA_CORE) || defined(LUA_LIB)
++ #ifdef __cplusplus
++ #define LUA_API extern "C" __declspec(dllexport)
++ #else
+ #define LUA_API __declspec(dllexport)
++ #endif
++ #else
++ #ifdef __cplusplus
++ #define LUA_API extern "C" __declspec(dllimport)
+ #else
+ #define LUA_API __declspec(dllimport)
+ #endif
++ #endif
+
+ #else
+
++ #ifdef __cplusplus
++ #define LUA_API extern "C"
++ #else
+ #define LUA_API extern
++ #endif
+
+ #endif
+