[Scummvm-git-logs] scummvm master -> a78a5a53010545d310256c5e682c1236b9c3e3bc
dwatteau
noreply at scummvm.org
Fri Dec 19 22:00:13 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
a78a5a5301 COMMON: LUA: Drop old workaround for macOS < 10.4
Commit: a78a5a53010545d310256c5e682c1236b9c3e3bc
https://github.com/scummvm/scummvm/commit/a78a5a53010545d310256c5e682c1236b9c3e3bc
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2025-12-19T22:51:33+01:00
Commit Message:
COMMON: LUA: Drop old workaround for macOS < 10.4
This workaround was added back in 2010 for a bug in macOS 10.2 SDK,
but I've checked that this was fixed starting with the 10.4 SDK.
Since our support for macOS 10.2 was already dropped several years ago,
it's time to drop commit ebf9911649f6596128493c5965f5b5638a029812.
Changed paths:
common/lua/lmathlib.cpp
diff --git a/common/lua/lmathlib.cpp b/common/lua/lmathlib.cpp
index 695941ea99b..c614b600688 100644
--- a/common/lua/lmathlib.cpp
+++ b/common/lua/lmathlib.cpp
@@ -256,17 +256,7 @@ LUALIB_API int luaopen_math (lua_State *L) {
luaL_register(L, LUA_MATHLIBNAME, mathlib);
lua_pushnumber(L, M_PI);
lua_setfield(L, -2, "pi");
-#if defined(MACOSX) && defined(__GNUC__) && ! defined( __XLC__ )
- // WORKAROUND for a bug in the Mac OS X 10.2.8 SDK. It defines
- // HUGE_VAL simply to 1e500, leading to this compiler error:
- // error: floating constant exceeds range of 'double'
- // However, GCC (at least the version we are using for our cross
- // compiler) has a __builtin_huge_val which returns the correct
- // value, so we just use that.
- lua_pushnumber(L, __builtin_huge_val());
-#else
lua_pushnumber(L, HUGE_VAL);
-#endif
lua_setfield(L, -2, "huge");
#if defined(LUA_COMPAT_MOD)
lua_getfield(L, -1, "fmod");
More information about the Scummvm-git-logs
mailing list