]> 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>
Mon, 15 Mar 2021 15:42:39 +0000 (15:42 +0000)
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.

libstdc++-v3/testsuite/17_intro/names.cc

index 4534d7907721db335c110e4a29b133e2554d6288..624e3ed9ccfe96e2a52af9c05fd76879b44bea24 100644 (file)
 #undef v
 #endif
 
+#ifdef __APPLE__
+// inttypes.h:  extern intmax_t imaxabs(intmax_t j);
+#undef j
+#endif
+
 #ifdef __hpux__
 #undef d
 #undef r