python/manuel: update to 1.13.0
[oi-userland.git] / components / runtime / lua-54 / patches / 02-headers.patch
blob2a7f1e80a5f437b950c441e071cc45e8f2868ac2
1 --- lua-5.4.6/src/lauxlib.h 2023-05-02 22:02:28.000000000 +0200
2 +++ lua-5.4.6/src/lauxlib.h.new 2023-10-02 22:24:14.018899755 +0200
3 @@ -8,6 +8,9 @@
4 #ifndef lauxlib_h
5 #define lauxlib_h
7 +#ifdef __cplusplus
8 +extern "C" {
9 +#endif
11 #include <stddef.h>
12 #include <stdio.h>
13 @@ -294,7 +297,9 @@
14 #endif
15 /* }============================================================ */
18 +#ifdef __cplusplus
20 +#endif
22 #endif
24 --- lua-5.4.6/src/lua.h 2023-05-02 22:02:30.000000000 +0200
25 +++ lua-5.4.6/src/lua.h.new 2023-10-02 22:25:46.666545597 +0200
26 @@ -9,6 +9,10 @@
27 #ifndef lua_h
28 #define lua_h
30 +#ifdef __cplusplus
31 +extern "C" {
32 +#endif
34 #include <stdarg.h>
35 #include <stddef.h>
37 @@ -519,5 +523,8 @@
38 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
39 ******************************************************************************/
41 +#ifdef __cplusplus
43 +#endif
45 #endif
46 --- lua-5.4.6/src/lualib.h 2023-05-02 22:02:30.000000000 +0200
47 +++ lua-5.4.6/src/lualib.h.new 2023-10-02 22:28:07.547172506 +0200
48 @@ -8,6 +8,10 @@
49 #ifndef lualib_h
50 #define lualib_h
52 +#ifdef __cplusplus
53 +extern "C" {
54 +#endif
56 #include "lua.h"
59 @@ -48,5 +52,8 @@
60 /* open all previous libraries */
61 LUALIB_API void (luaL_openlibs) (lua_State *L);
63 +#ifdef __cplusplus
65 +#endif
67 #endif
68 --- lua-5.4.6/src/luaconf.h 2023-05-02 22:02:30.000000000 +0200
69 +++ lua-5.4.6/src/luaconf.h.new 2023-10-02 22:30:32.600468200 +0200
70 @@ -223,7 +223,7 @@
72 #else /* }{ */
74 -#define LUA_ROOT "/usr/local/"
75 +#define LUA_ROOT "/usr/"
76 #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
77 #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
79 @@ -313,7 +313,7 @@
81 #if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
82 defined(__ELF__) /* { */
83 -#define LUAI_FUNC __attribute__((visibility("internal"))) extern
84 +#define LUAI_FUNC extern
85 #else /* }{ */
86 #define LUAI_FUNC extern
87 #endif /* } */