]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix some names.cc test failures on AIX
authorJonathan Wakely <jwakely@redhat.com>
Tue, 27 May 2025 11:54:14 +0000 (12:54 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 27 May 2025 12:35:23 +0000 (13:35 +0100)
libstdc++-v3/ChangeLog:

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

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

index 0e67c795564d192923f33ae6d0424b2008e4c29b..a61e49dc819185ecf9cdd0efcdba2330c6e4ffda 100644 (file)
 #undef r
 #undef x
 #undef y
+// <sys/localedef.h> defines _LC_weight_t::n
+#undef n
 // <sys/poll.h> defines pollfd_ext::u on AIX 7.3
 #undef u
 // <sys/var.h> defines vario::v
index e0a7d4f9b88049728cab6e41bf301f8eae04170d..4bedd530ecc5cce3a63f84fd287c3726a3b3c2e2 100644 (file)
 // naming variables, parameters etc. in the library.
 
 #include "../17_intro/names.cc"
+
+#ifdef _AIX
+// <netdb.h> declares endnetgrent_r with ptr parameter.
+# undef n
+#endif
+
 // Filesystem
 #if __has_include(<experimental/filesystem>)
 # include <experimental/filesystem>