From d0453cf5c68b6aa0e8c57a7a99d4285f047387b7 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 24 Feb 2021 16:24:34 +0000 Subject: [PATCH] libstdc++: Fix failing tests due to 'u' identifier in kernel header libstdc++-v3/ChangeLog: * testsuite/17_intro/names.cc: Undefine 'u' on powerpc*-linux*. --- libstdc++-v3/testsuite/17_intro/names.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index 77d89203b83a..4534d7907721 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -202,6 +202,11 @@ #undef r #endif +#if defined (__linux__) && defined (__powerpc__) +// defines __vector128::u +#undef u +#endif + #if defined (__linux__) && defined (__sparc__) #undef y #endif -- 2.47.3