Commit 20b6e9de authored by Rafaël Carré's avatar Rafaël Carré

Revert "Contribs: fix lua compilation with old Android versions"

This reverts commit 651eff7e.
parent f5c896b8
--- lua/src/lmathlib.c 2016-03-16 16:13:27.593329107 +0100
+++ lua/src/lmathlib.c.new 2016-03-16 16:13:05.285328491 +0100
@@ -183,7 +183,7 @@
res = l_mathop(log)(x);
else {
lua_Number base = luaL_checknumber(L, 2);
-#if !defined(LUA_USE_C89)
+#if !defined(LUA_USE_C89) && !defined(__ANDROID__)
if (base == 2.0) res = l_mathop(log2)(x); else
#endif
if (base == 10.0) res = l_mathop(log10)(x);
......@@ -47,7 +47,6 @@ lua: lua-$(LUA_VERSION).tar.gz .sum-lua
$(APPLY) $(SRC)/lua/lua-noreadline.patch
$(APPLY) $(SRC)/lua/no-dylibs.patch
$(APPLY) $(SRC)/lua/no-localeconv.patch
$(APPLY) $(SRC)/lua/lua-android-log2.patch
ifdef HAVE_DARWIN_OS
(cd $(UNPACK_DIR) && \
sed -e 's%gcc%$(CC)%' \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment