[gcc r15-6931] libstdc++: Fix use of internal feature test macro in test
Jonathan Wakely
redi@gcc.gnu.org
Wed Jan 15 23:45:21 GMT 2025
https://gcc.gnu.org/g:79d5504002e1cde242e8284ca134b2573d43bd89
commit r15-6931-g79d5504002e1cde242e8284ca134b2573d43bd89
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Jan 15 23:37:14 2025 +0000
libstdc++: Fix use of internal feature test macro in test
This test should use __cpp_lib_ios_noreplace rather than the internal
__glibcxx_ios_noreplace macro.
libstdc++-v3/ChangeLog:
* testsuite/27_io/ios_base/types/openmode/case_label.cc: Use
standard feature test macro not internal one.
Diff:
---
libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc b/libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc
index 253a0dc75668..e132070bf487 100644
--- a/libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc
+++ b/libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc
@@ -44,7 +44,7 @@ case_labels(bitmask_type b)
break;
case std::ios_base::trunc:
break;
-#ifdef __glibcxx_ios_noreplace
+#ifdef __cpp_lib_ios_noreplace
case std::ios_base::noreplace:
break;
#endif
More information about the Libstdc++-cvs
mailing list