File: 0003-extern_C.patch

package info (click to toggle)
lua5.4 5.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,596 kB
  • sloc: ansic: 19,534; makefile: 307; sh: 35
file content (22 lines) | stat: -rw-r--r-- 376 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
@@ -282,7 +282,11 @@
 
 #else				/* }{ */
 
+#ifdef __cplusplus
+#define LUA_API                extern "C"
+#else
 #define LUA_API		extern
+#endif
 
 #endif				/* } */