File: 0003-extern_C.patch

package info (click to toggle)
lua5.1 5.1.5-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,340 kB
  • sloc: ansic: 12,763; makefile: 428; sh: 55
file content (25 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: "John V. Belmonte" <jbelmonte@debian.org>
Date: Tue, 26 Aug 2014 16:20:49 +0200
Subject: extern_C

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

diff --git a/src/luaconf.h b/src/luaconf.h
index e63a718..b15ae4e 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -168,7 +168,11 @@
 
 #else
 
+#ifdef __cplusplus
+#define LUA_API		extern "C"
+#else
 #define LUA_API		extern
+#endif
 
 #endif