]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix use of internal feature test macro in test
authorJonathan Wakely <jwakely@redhat.com>
Wed, 15 Jan 2025 23:37:14 +0000 (23:37 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 15 Jan 2025 23:37:14 +0000 (23:37 +0000)
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.

libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc

index 253a0dc75668388d0da2653f35e579fd505f6e6e..e132070bf48736dc32ff442e9fdb56504ad0ae40 100644 (file)
@@ -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