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:
authorSoumith Chintala <soumith@fb.com>2016-02-04 00:57:40 +0300
committerSoumith Chintala <soumith@fb.com>2016-02-04 00:57:40 +0300
commit652989119b25aac450536838347d10fba71d71d2 (patch)
treec126d1f16e650d38acfc104715d610e09d666ec9
parenta34bcde41c94e254d15026f3cf4257a99e0b2aab (diff)
enabled lua52 compatibility mode by default
-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@/"
/*