From: Iain Sandoe Date: Mon, 15 Mar 2021 00:34:27 +0000 (+0000) Subject: libstdc++, testsuite, Darwin : Adjust for names used in system headers. X-Git-Tag: releases/gcc-10.4.0~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b0ee45cf6babc77c1a744660b23b497346705eb;p=thirdparty%2Fgcc.git 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) --- 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