projects/aports·blob master · refs

23 lines · 514 B

1Patch-Source: https://salsa.debian.org/lua-team/lua5.4/-/blob/bc284bb404e51d27feb5ffc705de8e32959c2048/debian/patches/0003-extern_C.patch
2From: Enrico Tassi <[email protected]>
3Date: Fri, 14 Aug 2015 09:36:52 +0200
4Subject: extern_C
5
6---
7 src/luaconf.h | 4 ++++
8 1 file changed, 4 insertions(+)
9
10--- a/src/luaconf.h
11+++ b/src/luaconf.h
12@@ -287,7 +287,11 @@
13
14 #else /* }{ */
15
16+#ifdef __cplusplus
17+#define LUA_API extern "C"
18+#else
19 #define LUA_API extern
20+#endif
21
22 #endif /* } */
23