Package: lua5.3 / 5.3.3-1

0003-extern_C.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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(+)

diff --git a/src/luaconf.h b/src/luaconf.h
index 3a4f8e6..1f602e9 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -248,7 +248,11 @@
 
 #else				/* }{ */
 
+#ifdef __cplusplus
+#define LUA_API                extern "C"
+#else
 #define LUA_API		extern
+#endif
 
 #endif				/* } */