aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua5.4/extern-c-for-cpp.patch
blob: c2268c76db839cf9272a3099563b6f80f72e0b0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Patch-Source: https://salsa.debian.org/lua-team/lua5.4/-/blob/bc284bb404e51d27feb5ffc705de8e32959c2048/debian/patches/0003-extern_C.patch
From: Enrico Tassi <gareuselesinge@debian.org>
Date: Fri, 14 Aug 2015 09:36:52 +0200
Subject: extern_C

---
 src/luaconf.h | 4 ++++
 1 file changed, 4 insertions(+)

--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -287,7 +287,11 @@
 
 #else				/* }{ */
 
+#ifdef __cplusplus
+#define LUA_API                extern "C"
+#else
 #define LUA_API		extern
+#endif
 
 #endif				/* } */