From 69b09c5599b201ac039db564c303f7b20d87e0df Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 31 Aug 2021 10:25:53 +0100 Subject: [PATCH] libstdc++: Fix 17_intro/names.cc failures on Solaris Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * testsuite/17_intro/names.cc: Undefine some more names used by Solaris system headers. --- 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 b945511e088d..b5e926fb09fe 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -243,6 +243,12 @@ #endif #ifdef __sun__ +// 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 -- 2.47.2