aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elua/elua_private.h
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-06-12 11:14:16 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-06-12 11:16:31 +0900
commit1b918594f2f7d192f4415764450f3ce44a553014 (patch)
tree17077b04b4c2b6aea1fef47d7a44ded0e4d252a3 /src/lib/elua/elua_private.h
parentelm test:image.zoomable: fix the compilation warnings (diff)
downloadefl-1b918594f2f7d192f4415764450f3ce44a553014.tar.gz
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 https://phab.enlightenment.org/T2728 @fix
Diffstat (limited to 'src/lib/elua/elua_private.h')
-rw-r--r--src/lib/elua/elua_private.h5
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 @@
#include <lualib.h>
#include <lauxlib.h>
+// FIX for luajit 2.1.0-beta3: see https://phab.enlightenment.org/T2728
+#ifndef luaL_reg
+# define luaL_reg luaL_Reg
+#endif
+
#include "Elua.h"
struct _Elua_State