summaryrefslogtreecommitdiff
path: root/src/lib/elua
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
parentc6a0a695967e6e10fcb404a72e270473879d5a63 (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/lib/elua')
-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 @@
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
33struct _Elua_State 38struct _Elua_State