public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Iain D Sandoe <iains@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r10-10801] libstdc++, testsuite, Darwin : Adjust for names used in system headers.
Date: Sun, 29 May 2022 19:14:35 +0000 (GMT)	[thread overview]
Message-ID: <20220529191435.2D6393829BD4@sourceware.org> (raw)

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


                 reply	other threads:[~2022-05-29 19:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220529191435.2D6393829BD4@sourceware.org \
    --to=iains@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).