3rdparty: build with ATARICROSS=1

This commit is contained in:
Thomas Bernard
2019-02-09 03:45:23 +01:00
parent 83c660d0ea
commit 96d59333e3
3 changed files with 607 additions and 3 deletions

11
3rdparty/lua-atari-log2.patch vendored Normal file
View File

@@ -0,0 +1,11 @@
--- lua-5.3.5/src/lmathlib.c.orig 2019-02-09 01:48:42.693042000 +0100
+++ lua-5.3.5/src/lmathlib.c 2019-02-09 01:49:09.775053000 +0100
@@ -183,7 +183,7 @@ static int math_log (lua_State *L) {
res = l_mathop(log)(x);
else {
lua_Number base = luaL_checknumber(L, 2);
-#if !defined(LUA_USE_C89)
+#if !defined(LUA_USE_C89) && !defined(__atarist__) && !defined(__MINT__)
if (base == l_mathop(2.0))
res = l_mathop(log2)(x); else
#endif