public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-9135] libstdc++: Fix 17_intro/names.cc failures on Solaris
@ 2021-10-12 19:41 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-10-12 19:41 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:f8e37478914884d88c800cf23cf882521f587c04

commit r11-9135-gf8e37478914884d88c800cf23cf882521f587c04
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Aug 31 10:25:53 2021 +0100

    libstdc++: Fix 17_intro/names.cc failures on Solaris
    
    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)

Diff:
---
 libstdc++-v3/testsuite/17_intro/names.cc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc
index 624e3ed9ccf..226b2d9c24a 100644
--- a/libstdc++-v3/testsuite/17_intro/names.cc
+++ b/libstdc++-v3/testsuite/17_intro/names.cc
@@ -217,6 +217,12 @@
 #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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-12 19:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12 19:41 [gcc r11-9135] libstdc++: Fix 17_intro/names.cc failures on Solaris Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).