diff --git a/libcxx/include/barrier b/libcxx/include/barrier --- a/libcxx/include/barrier +++ b/libcxx/include/barrier @@ -57,9 +57,7 @@ # error is not supported on this single threaded system #endif -#if _LIBCPP_STD_VER < 14 -# error requires C++14 or later -#endif +#if _LIBCPP_STD_VER >= 14 _LIBCPP_BEGIN_NAMESPACE_STD @@ -319,4 +317,6 @@ _LIBCPP_END_NAMESPACE_STD +#endif // _LIBCPP_STD_VER >= 14 + #endif //_LIBCPP_BARRIER diff --git a/libcxx/include/latch b/libcxx/include/latch --- a/libcxx/include/latch +++ b/libcxx/include/latch @@ -49,9 +49,7 @@ # error is not supported on this single threaded system #endif -#if _LIBCPP_STD_VER < 14 -# error requires C++14 or later -#endif +#if _LIBCPP_STD_VER >= 14 _LIBCPP_BEGIN_NAMESPACE_STD @@ -101,4 +99,6 @@ _LIBCPP_END_NAMESPACE_STD +#endif // _LIBCPP_STD_VER >= 14 + #endif //_LIBCPP_LATCH diff --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap --- a/libcxx/include/module.modulemap +++ b/libcxx/include/module.modulemap @@ -232,7 +232,6 @@ export * } module barrier { - requires cplusplus14 header "barrier" export * } @@ -340,7 +339,6 @@ export * } module latch { - requires cplusplus14 header "latch" export * } @@ -411,7 +409,6 @@ export * } module semaphore { - requires cplusplus14 header "semaphore" export * } diff --git a/libcxx/include/semaphore b/libcxx/include/semaphore --- a/libcxx/include/semaphore +++ b/libcxx/include/semaphore @@ -58,9 +58,7 @@ # error is not supported on this single threaded system #endif -#if _LIBCPP_STD_VER < 14 -# error is requires C++14 or later -#endif +#if _LIBCPP_STD_VER >= 14 _LIBCPP_BEGIN_NAMESPACE_STD @@ -230,4 +228,6 @@ _LIBCPP_END_NAMESPACE_STD +#endif // _LIBCPP_STD_VER >= 14 + #endif //_LIBCPP_SEMAPHORE