commit | author | age
|
2cda1c
|
1 |
--- src/lua.h.orig 2009-01-06 02:15:11.179130113 -0800 |
SS |
2 |
+++ src/lua.h 2009-01-06 02:15:56.570695998 -0800 |
715fde
|
3 |
@@ -9,6 +9,10 @@ |
SS |
4 |
#ifndef lua_h |
|
5 |
#define lua_h |
|
6 |
|
|
7 |
+#ifdef __cplusplus |
|
8 |
+extern "C" { |
|
9 |
+#endif |
|
10 |
+ |
|
11 |
#include <stdarg.h> |
|
12 |
#include <stddef.h> |
|
13 |
|
|
14 |
@@ -384,5 +388,8 @@ |
|
15 |
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
16 |
******************************************************************************/ |
|
17 |
|
|
18 |
+#ifdef __cplusplus |
|
19 |
+} |
|
20 |
+#endif |
|
21 |
|
|
22 |
#endif |
2cda1c
|
23 |
--- src/lualib.h.orig 2009-01-06 02:15:19.193417835 -0800 |
SS |
24 |
+++ src/lualib.h 2009-01-06 02:16:20.502288036 -0800 |
715fde
|
25 |
@@ -8,6 +8,10 @@ |
SS |
26 |
#ifndef lualib_h |
|
27 |
#define lualib_h |
|
28 |
|
|
29 |
+#ifdef __cplusplus |
|
30 |
+extern "C" { |
|
31 |
+#endif |
|
32 |
+ |
|
33 |
#include "lua.h" |
|
34 |
|
|
35 |
|
|
36 |
@@ -49,5 +53,8 @@ |
|
37 |
#define lua_assert(x) ((void)0) |
|
38 |
#endif |
|
39 |
|
|
40 |
+#ifdef __cplusplus |
|
41 |
+} |
|
42 |
+#endif |
|
43 |
|
|
44 |
#endif |
2cda1c
|
45 |
--- src/lauxlib.h.orig 2009-01-06 02:15:37.967244620 -0800 |
SS |
46 |
+++ src/lauxlib.h 2009-01-06 02:16:26.398180986 -0800 |
715fde
|
47 |
@@ -8,6 +8,9 @@ |
SS |
48 |
#ifndef lauxlib_h |
|
49 |
#define lauxlib_h |
|
50 |
|
|
51 |
+#ifdef __cplusplus |
|
52 |
+extern "C" { |
|
53 |
+#endif |
|
54 |
|
|
55 |
#include <stddef.h> |
|
56 |
#include <stdio.h> |
|
57 |
@@ -169,6 +172,10 @@ |
|
58 |
|
|
59 |
#define luaL_reg luaL_Reg |
|
60 |
|
|
61 |
+#ifdef __cplusplus |
|
62 |
+} |
|
63 |
+#endif |
|
64 |
+ |
|
65 |
#endif |
|
66 |
|
|
67 |
|