diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2014-08-22 12:54:36 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2014-08-22 15:39:14 (GMT) |
commit | 22612efbdbdf88bfdf78270d1d97a27f8c111658 (patch) | |
tree | 153093b0e205407088230741bd5de6f86c53e3ff /src/luabind-4-fenv.patch | |
parent | 2722b35587bee4ec2f0c47f9c6f00186e5685ad9 (diff) | |
download | mxe-22612efbdbdf88bfdf78270d1d97a27f8c111658.zip mxe-22612efbdbdf88bfdf78270d1d97a27f8c111658.tar.gz mxe-22612efbdbdf88bfdf78270d1d97a27f8c111658.tar.bz2 |
new package luabind
luabind is compatible with Lua 5.1, but MXE Lua is 5.2,
so sevaral patches are applied
Diffstat (limited to 'src/luabind-4-fenv.patch')
-rw-r--r-- | src/luabind-4-fenv.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/luabind-4-fenv.patch b/src/luabind-4-fenv.patch new file mode 100644 index 0000000..ca01fe5 --- /dev/null +++ b/src/luabind-4-fenv.patch @@ -0,0 +1,29 @@ +This file is part of MXE. +See index.html for further information. + +commit eb4c3507be8a468da07d6ad9f8019c90fbd31b76 +Author: Boris Nagaev <bnagaev@gmail.com> +Date: Fri Aug 22 16:24:28 2014 +0400 + + lua_getfenv/lua_setfenv + +diff --git a/src/object_rep.cpp b/src/object_rep.cpp +index 6977bee..bd322e1 100755 +--- a/src/object_rep.cpp ++++ b/src/object_rep.cpp +@@ -25,6 +25,15 @@ + #include <luabind/detail/object_rep.hpp> + #include <luabind/detail/class_rep.hpp> + ++// http://lua-users.org/lists/lua-l/2010-01/msg00516.html ++ ++#ifndef LUA_ENVIRONINDEX ++ ++#define lua_getfenv lua_getuservalue ++#define lua_setfenv lua_setuservalue ++ ++#endif ++ + namespace luabind { namespace detail + { + |