From a3670eebfa606f08dec73084a1835b618c294ca6 Mon Sep 17 00:00:00 2001 From: Hai Liang Wang Date: Fri, 16 Aug 2024 09:28:12 +0800 Subject: [PATCH] Fix math methods not found on MINGW32 build Signed-off-by: Hai Liang Wang --- gnucash/gnucash-core-app.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnucash/gnucash-core-app.hpp b/gnucash/gnucash-core-app.hpp index b9ba65dec9..7b871c5a64 100644 --- a/gnucash/gnucash-core-app.hpp +++ b/gnucash/gnucash-core-app.hpp @@ -25,8 +25,13 @@ #define GNUCASH_CORE_APP_HPP #ifdef __MINGW32__ -#undef _GLIBCXX_USE_C99_MATH_TR1 // Avoid cmath missing function decl. +// Avoid cmath missing function decl. +#undef _GLIBCXX_USE_C99_MATH_TR1 +#if (__GNUC__ > 14) || (__GNUC__ == 14 && __GNUC_MINOR__ >= 1) +#undef _GLIBCXX_USE_C99_MATH_FUNCS #endif +#endif + #include #include #include