about summary refs log tree commit diff
path: root/include/monetary.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/monetary.h')
-rw-r--r--include/monetary.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/monetary.h b/include/monetary.h
index 240925e87d..bddc660ce2 100644
--- a/include/monetary.h
+++ b/include/monetary.h
@@ -1,3 +1,11 @@
+/* Workaround PR90731 with GCC 9 when using ldbl redirects in C++.  */
+#include <bits/floatn.h>
+#if defined __cplusplus && __LONG_DOUBLE_USES_FLOAT128 == 1
+# if __GNUC_PREREQ (9, 0) && !__GNUC_PREREQ (9, 3)
+#   pragma GCC system_header
+# endif
+#endif
+
 #include <stdlib/monetary.h>
 #ifndef _ISOMAC
 #include <stdarg.h>