From 3b0ee45cf6babc77c1a744660b23b497346705eb Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Mon, 15 Mar 2021 00:34:27 +0000 Subject: [PATCH] libstdc++, testsuite, Darwin : Adjust for names used in system headers. For all current Darwin SDKs inttypes.h has: extern intmax_t imaxabs(intmax_t j); So we need to exclude j from the defined test symbols. libstdc++-v3/ChangeLog: * testsuite/17_intro/names.cc: Exclude j from the list of test symbols for Darwin. (cherry picked from commit 6f4b0ff2b1fbd58669ae130387c7535110300c52) --- 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 a5642df8666f..5170a714b93c 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -201,6 +201,11 @@ #undef func #endif +#ifdef __APPLE__ +// inttypes.h: extern intmax_t imaxabs(intmax_t j); +#undef j +#endif + #ifdef __hpux__ #undef d #undef r -- 2.47.2