]> 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, 12 Oct 2021 19:40:36 +0000 (20:40 +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.

(cherry picked from commit 69b09c5599b201ac039db564c303f7b20d87e0df)

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

index 624e3ed9ccfe96e2a52af9c05fd76879b44bea24..226b2d9c24aa4a3e7d960e63ca0a3ee447c90151 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