Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/luajit-rocks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua-5.3/CMakeLists.txt3
-rw-r--r--lua-5.3/src/luaconf.h.in1
2 files changed, 4 insertions, 0 deletions
diff --git a/lua-5.3/CMakeLists.txt b/lua-5.3/CMakeLists.txt
index 35483f7..37e0d2b 100644
--- a/lua-5.3/CMakeLists.txt
+++ b/lua-5.3/CMakeLists.txt
@@ -28,6 +28,9 @@ IF(UNIX)
SET(LUA_USE_POSIX 1)
ENDIF()
+# compatibility with Lua 5.2
+SET(LUA_COMPAT_5_2 1)
+
# Readline support
FIND_PACKAGE(Readline)
IF(READLINE_FOUND)
diff --git a/lua-5.3/src/luaconf.h.in b/lua-5.3/src/luaconf.h.in
index f0bba74..3e12f15 100644
--- a/lua-5.3/src/luaconf.h.in
+++ b/lua-5.3/src/luaconf.h.in
@@ -16,6 +16,7 @@
#cmakedefine LUA_USE_POSIX 1
#cmakedefine LUA_USE_READLINE 1
#cmakedefine LUA_BUILD_AS_DLL 1
+#cmakedefine LUA_COMPAT_5_2 1
#define LUA_ROOT "@LUA_ROOT@/"
/*