File: 0003-extern_C.patch

package info (click to toggle)
lua5.2 5.2.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 1,276 kB
  • ctags: 3,274
  • sloc: ansic: 14,670; makefile: 324; sh: 18
file content (24 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (2)
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 10:16:57 +0200
Subject: extern_C

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

diff --git a/src/luaconf.h b/src/luaconf.h
index e0b1a13..c323b7f 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -157,7 +157,11 @@
 
 #else				/* }{ */
 
+#ifdef __cplusplus
+#define LUA_API                extern "C"
+#else
 #define LUA_API		extern
+#endif
 
 #endif				/* } */