]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++, testsuite, Darwin : Adjust for names used in system headers.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 15 Mar 2021 00:34:27 +0000 (00:34 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 29 May 2022 19:14:28 +0000 (20:14 +0100)
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

index a5642df8666f93f38c754bacbf5cfbfdfd77ad2b..5170a714b93cdc4ccd9c9900ccf59e5f350503a2 100644 (file)
 #undef func
 #endif
 
+#ifdef __APPLE__
+// inttypes.h:  extern intmax_t imaxabs(intmax_t j);
+#undef j
+#endif
+
 #ifdef __hpux__
 #undef d
 #undef r