diff options
-rw-r--r-- | src/lib/elua/elua.c | 4 | ||||
-rw-r--r-- | src/lib/elua/elua_private.h | 5 | ||||
-rw-r--r-- | src/lib/elua/io.c | 2 |
3 files changed, 3 insertions, 8 deletions
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c index 185f592890..2d9eebe3c3 100644 --- a/src/lib/elua/elua.c +++ b/src/lib/elua/elua.c | |||
@@ -355,7 +355,7 @@ _elua_get_localeconv(lua_State *L) | |||
355 | return 1; | 355 | return 1; |
356 | }; | 356 | }; |
357 | 357 | ||
358 | const luaL_reg gettextlib[] = | 358 | const luaL_Reg gettextlib[] = |
359 | { | 359 | { |
360 | { "bind_textdomain", _elua_gettext_bind_textdomain }, | 360 | { "bind_textdomain", _elua_gettext_bind_textdomain }, |
361 | { "get_message_language", _elua_get_message_language }, | 361 | { "get_message_language", _elua_get_message_language }, |
@@ -442,7 +442,7 @@ _elua_file_rmrf(lua_State *L) | |||
442 | return 1; | 442 | return 1; |
443 | } | 443 | } |
444 | 444 | ||
445 | const luaL_reg _elua_cutillib[] = | 445 | const luaL_Reg _elua_cutillib[] = |
446 | { | 446 | { |
447 | { "init_module", _elua_module_init }, | 447 | { "init_module", _elua_module_init }, |
448 | { "popenv" , _elua_io_popen }, | 448 | { "popenv" , _elua_io_popen }, |
diff --git a/src/lib/elua/elua_private.h b/src/lib/elua/elua_private.h index 35c4f85641..9f62c5ff4b 100644 --- a/src/lib/elua/elua_private.h +++ b/src/lib/elua/elua_private.h | |||
@@ -28,11 +28,6 @@ | |||
28 | #include <lualib.h> | 28 | #include <lualib.h> |
29 | #include <lauxlib.h> | 29 | #include <lauxlib.h> |
30 | 30 | ||
31 | // FIX for luajit 2.1.0-beta3: see https://phab.enlightenment.org/T2728 | ||
32 | #ifndef luaL_reg | ||
33 | # define luaL_reg luaL_Reg | ||
34 | #endif | ||
35 | |||
36 | #include "Elua.h" | 31 | #include "Elua.h" |
37 | 32 | ||
38 | struct _Elua_State | 33 | struct _Elua_State |
diff --git a/src/lib/elua/io.c b/src/lib/elua/io.c index 6835e9936f..186170b87c 100644 --- a/src/lib/elua/io.c +++ b/src/lib/elua/io.c | |||
@@ -313,7 +313,7 @@ elua_ftostring(lua_State *L) | |||
313 | return 1; | 313 | return 1; |
314 | } | 314 | } |
315 | 315 | ||
316 | static const luaL_reg elua_popenlib[] = | 316 | static const luaL_Reg elua_popenlib[] = |
317 | { | 317 | { |
318 | { "close" , elua_close }, | 318 | { "close" , elua_close }, |
319 | { "flush" , elua_flush }, | 319 | { "flush" , elua_flush }, |