gnucash stable: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Fri Aug 16 18:26:03 EDT 2024
Updated via https://github.com/Gnucash/gnucash/commit/1d0bc7c8 (commit)
via https://github.com/Gnucash/gnucash/commit/a3670eeb (commit)
from https://github.com/Gnucash/gnucash/commit/2ea4e763 (commit)
commit 1d0bc7c8283eb66e5ae276d4e62457c857b49422
Merge: 2ea4e76356 a3670eebfa
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Aug 16 15:23:58 2024 -0700
Merge Hailiang Wang's GCC14.1 cmath update into stable.
commit a3670eebfa606f08dec73084a1835b618c294ca6
Author: Hai Liang Wang <hai at chatopera.com>
Date: Fri Aug 16 09:28:12 2024 +0800
Fix math methods not found on MINGW32 build
Signed-off-by: Hai Liang Wang <hai at chatopera.com>
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 <boost/optional.hpp>
#include <boost/program_options.hpp>
#include <string>
Summary of changes:
gnucash/gnucash-core-app.hpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list