[gcc r11-7673] libstdc++, testsuite, Darwin : Adjust for names used in system headers.

Iain D Sandoe iains@gcc.gnu.org
Mon Mar 15 15:43:58 GMT 2021


https://gcc.gnu.org/g:6f4b0ff2b1fbd58669ae130387c7535110300c52

commit r11-7673-g6f4b0ff2b1fbd58669ae130387c7535110300c52
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.

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 4534d790772..624e3ed9ccf 100644
--- a/libstdc++-v3/testsuite/17_intro/names.cc
+++ b/libstdc++-v3/testsuite/17_intro/names.cc
@@ -197,6 +197,11 @@
 #undef v
 #endif
 
+#ifdef __APPLE__
+// inttypes.h:  extern intmax_t imaxabs(intmax_t j);
+#undef j
+#endif
+
 #ifdef __hpux__
 #undef d
 #undef r


More information about the Gcc-cvs mailing list