]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix another 17_intro/names.cc failure on AIX
authorJonathan Wakely <jwakely@redhat.com>
Tue, 27 May 2025 20:50:24 +0000 (21:50 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 29 May 2025 13:03:51 +0000 (14:03 +0100)
FAIL: 17_intro/names.cc  -std=gnu++98 (test for excess errors)

Also fix typo in experimental/names.cc where I did #undef for the wrong
name in r16-901-gd1ced2a5ea6b09.

libstdc++-v3/ChangeLog:

* testsuite/17_intro/names.cc [_AIX] (a): Undefine.
* testsuite/experimental/names.cc [_AIX] (ptr): Undefine.

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

index a61e49dc819185ecf9cdd0efcdba2330c6e4ffda..f32205d9c7f522ec8e04a295972a1ca845558b14 100644 (file)
 #undef r
 #undef x
 #undef y
+// <stdlib.h> defines drand48_data::a
+#undef a
 // <sys/localedef.h> defines _LC_weight_t::n
 #undef n
 // <sys/poll.h> defines pollfd_ext::u on AIX 7.3
index 4bedd530ecc5cce3a63f84fd287c3726a3b3c2e2..94ae76fc610ba087a123b60a6da7dd998eae11a3 100644 (file)
@@ -25,7 +25,7 @@
 
 #ifdef _AIX
 // <netdb.h> declares endnetgrent_r with ptr parameter.
-# undef n
+# undef ptr
 #endif
 
 // Filesystem