perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / runtime / lua-53 / patches / 02-headers.patch
blobb5dff682a0f28094494a1127d3dbe62e5414fd54
1 diff -ruN lua-5.3.2.orig/src/lauxlib.h lua-5.3.2/src/lauxlib.h
2 --- lua-5.3.2.orig/src/lauxlib.h 2015-11-23 12:29:43.000000000 +0100
3 +++ lua-5.3.2/src/lauxlib.h 2016-04-26 02:24:14.904089932 +0200
4 @@ -8,6 +8,9 @@
5 #ifndef lauxlib_h
6 #define lauxlib_h
8 +#ifdef __cplusplus
9 +extern "C" {
10 +#endif
12 #include <stddef.h>
13 #include <stdio.h>
14 @@ -250,6 +253,9 @@
15 /* }============================================================ */
18 +#ifdef __cplusplus
20 +#endif
22 #endif
24 diff -ruN lua-5.3.2.orig/src/lua.h lua-5.3.2/src/lua.h
25 --- lua-5.3.2.orig/src/lua.h 2015-11-13 18:18:42.000000000 +0100
26 +++ lua-5.3.2/src/lua.h 2016-04-26 02:22:48.355488690 +0200
27 @@ -9,6 +9,10 @@
28 #ifndef lua_h
29 #define lua_h
31 +#ifdef __cplusplus
32 +extern "C" {
33 +#endif
35 #include <stdarg.h>
36 #include <stddef.h>
38 @@ -483,4 +487,8 @@
39 ******************************************************************************/
42 +#ifdef __cplusplus
44 +#endif
46 #endif
47 diff -ruN lua-5.3.2.orig/src/lualib.h lua-5.3.2/src/lualib.h
48 --- lua-5.3.2.orig/src/lualib.h 2014-02-06 18:32:33.000000000 +0100
49 +++ lua-5.3.2/src/lualib.h 2016-04-26 02:23:16.977614755 +0200
50 @@ -8,6 +8,10 @@
51 #ifndef lualib_h
52 #define lualib_h
54 +#ifdef __cplusplus
55 +extern "C" {
56 +#endif
58 #include "lua.h"
61 @@ -55,4 +59,8 @@
62 #endif
65 +#ifdef __cplusplus
67 +#endif
69 #endif
70 --- lua-5.3.6/src/luaconf.h.orig 2020-09-14 17:34:01.000000000 +0000
71 +++ lua-5.3.6/src/luaconf.h 2020-10-04 17:28:27.998074413 +0000
72 @@ -200,7 +200,7 @@
74 #else /* }{ */
76 -#define LUA_ROOT "/usr/local/"
77 +#define LUA_ROOT "/usr/"
78 #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
79 #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
80 #define LUA_PATH_DEFAULT \
81 @@ -277,7 +277,7 @@
83 #if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
84 defined(__ELF__) /* { */
85 -#define LUAI_FUNC __attribute__((visibility("hidden"))) extern
86 +#define LUAI_FUNC extern
87 #else /* }{ */
88 #define LUAI_FUNC extern
89 #endif /* } */