]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix 17_intro/names.cc failures on Solaris
authorJonathan Wakely <jwakely@redhat.com>
Tue, 31 Aug 2021 09:25:53 +0000 (10:25 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 31 Aug 2021 13:17:53 +0000 (14:17 +0100)
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

* testsuite/17_intro/names.cc: Undefine some more names used
by Solaris system headers.

libstdc++-v3/testsuite/17_intro/names.cc

index b945511e088d9f25b24f674f1f2136d538bf4914..b5e926fb09fe1b646545a9d6a6591ba1a3fad8ef 100644 (file)
 #endif
 
 #ifdef __sun__
+// <fenv.h> defines these as members of fex_numeric_t
+#undef l
+#undef f
+#undef d
+#undef q
+#undef p
 // See https://gcc.gnu.org/ml/libstdc++/2019-05/msg00175.html
 #undef ptr
 #endif