public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-10801] libstdc++, testsuite, Darwin : Adjust for names used in system headers.
@ 2022-05-29 19:14 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2022-05-29 19:14 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:3b0ee45cf6babc77c1a744660b23b497346705eb

commit r10-10801-g3b0ee45cf6babc77c1a744660b23b497346705eb
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Mon Mar 15 00:34:27 2021 +0000

    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:
---
 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 a5642df8666..5170a714b93 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


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

only message in thread, other threads:[~2022-05-29 19:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-29 19:14 [gcc r10-10801] libstdc++, testsuite, Darwin : Adjust for names used in system headers Iain D Sandoe

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).