raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1b918594f2f7d192f4415764450f3ce44a553014

commit 1b918594f2f7d192f4415764450f3ce44a553014
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Jun 12 11:14:16 2017 +0900

    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
---
 src/lib/elua/elua_private.h | 5 +++++
 1 file changed, 5 insertions(+)

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

-- 


Reply via email to