ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / runtime / lua / patches / 3.headers.patch
blob77e99252fae2cffef3531bf11183a1df47573559
1 Patch to src/luaconf.h is to adjust lua's default path for where it
2 looks for .lua and lua related .so's
3 OI-specific: If GCC hides symbols luac and lua binary can't be compiled.
5 --- src/lua.h.~1~ Fri Apr 20 06:18:26 2012
6 +++ src/lua.h Tue Oct 16 16:37:24 2012
7 @@ -9,6 +9,10 @@
8 #ifndef lua_h
9 #define lua_h
11 +#ifdef __cplusplus
12 +extern "C" {
13 +#endif
15 #include <stdarg.h>
16 #include <stddef.h>
18 @@ -435,5 +439,8 @@
19 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 ******************************************************************************/
22 +#ifdef __cplusplus
24 +#endif
26 #endif
28 --- src/lualib.h.~1~ Thu Dec 8 04:11:37 2011
29 +++ src/lualib.h Tue Oct 16 16:34:40 2012
30 @@ -8,6 +8,10 @@
31 #ifndef lualib_h
32 #define lualib_h
34 +#ifdef __cplusplus
35 +extern "C" {
36 +#endif
38 #include "lua.h"
41 @@ -51,5 +55,8 @@
42 #define lua_assert(x) ((void)0)
43 #endif
45 +#ifdef __cplusplus
47 +#endif
49 #endif
50 --- src/lauxlib.h.~1~ Tue Nov 29 07:55:08 2011
51 +++ src/lauxlib.h Tue Oct 16 16:34:40 2012
52 @@ -8,6 +8,9 @@
53 #ifndef lauxlib_h
54 #define lauxlib_h
56 +#ifdef __cplusplus
57 +extern "C" {
58 +#endif
60 #include <stddef.h>
61 #include <stdio.h>
62 @@ -206,7 +209,9 @@
64 #endif
67 +#ifdef __cplusplus
69 #endif
71 +#endif
74 --- src/luaconf.h.~1~ 2013-03-17 01:10:18.000000000 +0400
75 +++ src/luaconf.h 2014-07-10 09:54:41.072127770 +0400
76 @@ -100,7 +100,7 @@
77 #else /* }{ */
79 #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/"
80 -#define LUA_ROOT "/usr/local/"
81 +#define LUA_ROOT "/usr/"
82 #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR
83 #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR
84 #define LUA_PATH_DEFAULT \
85 @@ -176,7 +176,7 @@
87 #if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
88 defined(__ELF__) /* { */
89 -#define LUAI_FUNC __attribute__((visibility("hidden"))) extern
90 +#define LUAI_FUNC extern
91 #define LUAI_DDEC LUAI_FUNC
92 #define LUAI_DDEF /* empty */