Skip to content

Commit a3670ee

Browse files
committed
Fix math methods not found on MINGW32 build
Signed-off-by: Hai Liang Wang <hai@chatopera.com>
1 parent 2ea4e76 commit a3670ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gnucash/gnucash-core-app.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@
2525
#define GNUCASH_CORE_APP_HPP
2626

2727
#ifdef __MINGW32__
28-
#undef _GLIBCXX_USE_C99_MATH_TR1 // Avoid cmath missing function decl.
28+
// Avoid cmath missing function decl.
29+
#undef _GLIBCXX_USE_C99_MATH_TR1
30+
#if (__GNUC__ > 14) || (__GNUC__ == 14 && __GNUC_MINOR__ >= 1)
31+
#undef _GLIBCXX_USE_C99_MATH_FUNCS
2932
#endif
33+
#endif
34+
3035
#include <boost/optional.hpp>
3136
#include <boost/program_options.hpp>
3237
#include <string>

0 commit comments

Comments
 (0)