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-01-29 19:02:05 +0300
committerSoumith Chintala <soumith@fb.com>2016-01-29 19:02:05 +0300
commit960ecb2e83b369a880a63ba771f466ba2a9d2429 (patch)
tree7f2a0f6c5c13d04fb5ab59b7be88b795a955c901
parent54b8b58d26a8b1198d451494f2dd32a15a944e5a (diff)
fix for android to lua 5.2
-rw-r--r--lua-5.2/src/luaconf.h.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua-5.2/src/luaconf.h.in b/lua-5.2/src/luaconf.h.in
index 2270d66..503ff5b 100644
--- a/lua-5.2/src/luaconf.h.in
+++ b/lua-5.2/src/luaconf.h.in
@@ -558,7 +558,16 @@
** without modifying the main part of the file.
*/
+/* Added for torch-android by Soumith Chintala */
+#ifdef __ANDROID__
+
+/* http://stackoverflow.com/questions/12299659/compiling-lua-lib-for-android-success-but-strange-segfaults */
+#if !defined(getlocaledecpoint)
+#define getlocaledecpoint() ('.') //Code-monkey style
+#endif
+
+#endif
#endif