diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-06-12 11:14:16 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-06-12 11:16:31 +0900 |
commit | 1b918594f2f7d192f4415764450f3ce44a553014 (patch) | |
tree | 17077b04b4c2b6aea1fef47d7a44ded0e4d252a3 /src | |
parent | c6a0a695967e6e10fcb404a72e270473879d5a63 (diff) |
elua - fix build for luajit2.1.0-beta3+
it seems luajit (and lua) broke api again... removed a #define from
their headers from 5.1->5.2 of lua (and seemingly luajit2.1 too). :(
this should fix T2728
@fix
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/elua/elua_private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/elua/elua_private.h b/src/lib/elua/elua_private.h index 9f62c5ff4b..35c4f85641 100644 --- a/src/lib/elua/elua_private.h +++ b/src/lib/elua/elua_private.h | |||
@@ -28,6 +28,11 @@ | |||
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 | |||
31 | #include "Elua.h" | 36 | #include "Elua.h" |
32 | 37 | ||
33 | struct _Elua_State | 38 | struct _Elua_State |