aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/expected
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/std/expected')
-rw-r--r--libstdc++-v3/include/std/expected8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/include/std/expected b/libstdc++-v3/include/std/expected
index a635574..a796f0b 100644
--- a/libstdc++-v3/include/std/expected
+++ b/libstdc++-v3/include/std/expected
@@ -31,8 +31,10 @@
#pragma GCC system_header
-#if __cplusplus > 202002L && __cpp_concepts >= 202002L
+#define __glibcxx_want_expected
+#include <bits/version.h>
+#ifdef __cpp_lib_expected // C++ >= 23 && __cpp_concepts >= 202002L
#include <initializer_list>
#include <bits/exception.h> // exception
#include <bits/invoke.h> // __invoke
@@ -50,8 +52,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @{
*/
-#define __cpp_lib_expected 202211L
-
/// Discriminated union that holds an expected value or an error value.
/**
* @since C++23
@@ -1815,5 +1815,5 @@ namespace __expected
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace std
-#endif // C++23
+#endif // __cpp_lib_expected
#endif // _GLIBCXX_EXPECTED