|
1885 | 1885 | # error "__cpp_lib_shared_ptr_weak_type should not be defined before c++17"
|
1886 | 1886 | # endif
|
1887 | 1887 |
|
1888 |
| -# if _LIBCPP_HAS_THREADS |
| 1888 | +# if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS |
1889 | 1889 | # ifndef __cpp_lib_shared_timed_mutex
|
1890 | 1890 | # error "__cpp_lib_shared_timed_mutex should be defined in c++14"
|
1891 | 1891 | # endif
|
|
1894 | 1894 | # endif
|
1895 | 1895 | # else
|
1896 | 1896 | # ifdef __cpp_lib_shared_timed_mutex
|
1897 |
| -# error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '_LIBCPP_HAS_THREADS' is not met!" |
| 1897 | +# error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS' is not met!" |
1898 | 1898 | # endif
|
1899 | 1899 | # endif
|
1900 | 1900 |
|
|
2971 | 2971 | # error "__cpp_lib_senders should not be defined before c++26"
|
2972 | 2972 | # endif
|
2973 | 2973 |
|
2974 |
| -# if _LIBCPP_HAS_THREADS |
| 2974 | +# if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS |
2975 | 2975 | # ifndef __cpp_lib_shared_mutex
|
2976 | 2976 | # error "__cpp_lib_shared_mutex should be defined in c++17"
|
2977 | 2977 | # endif
|
|
2980 | 2980 | # endif
|
2981 | 2981 | # else
|
2982 | 2982 | # ifdef __cpp_lib_shared_mutex
|
2983 |
| -# error "__cpp_lib_shared_mutex should not be defined when the requirement '_LIBCPP_HAS_THREADS' is not met!" |
| 2983 | +# error "__cpp_lib_shared_mutex should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS' is not met!" |
2984 | 2984 | # endif
|
2985 | 2985 | # endif
|
2986 | 2986 |
|
|
2998 | 2998 | # error "__cpp_lib_shared_ptr_weak_type should have the value 201606L in c++17"
|
2999 | 2999 | # endif
|
3000 | 3000 |
|
3001 |
| -# if _LIBCPP_HAS_THREADS |
| 3001 | +# if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS |
3002 | 3002 | # ifndef __cpp_lib_shared_timed_mutex
|
3003 | 3003 | # error "__cpp_lib_shared_timed_mutex should be defined in c++17"
|
3004 | 3004 | # endif
|
|
3007 | 3007 | # endif
|
3008 | 3008 | # else
|
3009 | 3009 | # ifdef __cpp_lib_shared_timed_mutex
|
3010 |
| -# error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '_LIBCPP_HAS_THREADS' is not met!" |
| 3010 | +# error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS' is not met!" |
3011 | 3011 | # endif
|
3012 | 3012 | # endif
|
3013 | 3013 |
|
|
4333 | 4333 | # error "__cpp_lib_senders should not be defined before c++26"
|
4334 | 4334 | # endif
|
4335 | 4335 |
|
4336 |
| -# if _LIBCPP_HAS_THREADS |
| 4336 | +# if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS |
4337 | 4337 | # ifndef __cpp_lib_shared_mutex
|
4338 | 4338 | # error "__cpp_lib_shared_mutex should be defined in c++20"
|
4339 | 4339 | # endif
|
|
4342 | 4342 | # endif
|
4343 | 4343 | # else
|
4344 | 4344 | # ifdef __cpp_lib_shared_mutex
|
4345 |
| -# error "__cpp_lib_shared_mutex should not be defined when the requirement '_LIBCPP_HAS_THREADS' is not met!" |
| 4345 | +# error "__cpp_lib_shared_mutex should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS' is not met!" |
4346 | 4346 | # endif
|
4347 | 4347 | # endif
|
4348 | 4348 |
|
|
4360 | 4360 | # error "__cpp_lib_shared_ptr_weak_type should have the value 201606L in c++20"
|
4361 | 4361 | # endif
|
4362 | 4362 |
|
4363 |
| -# if _LIBCPP_HAS_THREADS |
| 4363 | +# if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS |
4364 | 4364 | # ifndef __cpp_lib_shared_timed_mutex
|
4365 | 4365 | # error "__cpp_lib_shared_timed_mutex should be defined in c++20"
|
4366 | 4366 | # endif
|
|
4369 | 4369 | # endif
|
4370 | 4370 | # else
|
4371 | 4371 | # ifdef __cpp_lib_shared_timed_mutex
|
4372 |
| -# error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '_LIBCPP_HAS_THREADS' is not met!" |
| 4372 | +# error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS' is not met!" |
4373 | 4373 | # endif
|
4374 | 4374 | # endif
|
4375 | 4375 |
|
|
5938 | 5938 | # error "__cpp_lib_senders should not be defined before c++26"
|
5939 | 5939 | # endif
|
5940 | 5940 |
|
5941 |
| -# if _LIBCPP_HAS_THREADS |
| 5941 | +# if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS |
5942 | 5942 | # ifndef __cpp_lib_shared_mutex
|
5943 | 5943 | # error "__cpp_lib_shared_mutex should be defined in c++23"
|
5944 | 5944 | # endif
|
|
5947 | 5947 | # endif
|
5948 | 5948 | # else
|
5949 | 5949 | # ifdef __cpp_lib_shared_mutex
|
5950 |
| -# error "__cpp_lib_shared_mutex should not be defined when the requirement '_LIBCPP_HAS_THREADS' is not met!" |
| 5950 | +# error "__cpp_lib_shared_mutex should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS' is not met!" |
5951 | 5951 | # endif
|
5952 | 5952 | # endif
|
5953 | 5953 |
|
|
5965 | 5965 | # error "__cpp_lib_shared_ptr_weak_type should have the value 201606L in c++23"
|
5966 | 5966 | # endif
|
5967 | 5967 |
|
5968 |
| -# if _LIBCPP_HAS_THREADS |
| 5968 | +# if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS |
5969 | 5969 | # ifndef __cpp_lib_shared_timed_mutex
|
5970 | 5970 | # error "__cpp_lib_shared_timed_mutex should be defined in c++23"
|
5971 | 5971 | # endif
|
|
5974 | 5974 | # endif
|
5975 | 5975 | # else
|
5976 | 5976 | # ifdef __cpp_lib_shared_timed_mutex
|
5977 |
| -# error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '_LIBCPP_HAS_THREADS' is not met!" |
| 5977 | +# error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS' is not met!" |
5978 | 5978 | # endif
|
5979 | 5979 | # endif
|
5980 | 5980 |
|
|
7858 | 7858 | # endif
|
7859 | 7859 | # endif
|
7860 | 7860 |
|
7861 |
| -# if _LIBCPP_HAS_THREADS |
| 7861 | +# if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS |
7862 | 7862 | # ifndef __cpp_lib_shared_mutex
|
7863 | 7863 | # error "__cpp_lib_shared_mutex should be defined in c++26"
|
7864 | 7864 | # endif
|
|
7867 | 7867 | # endif
|
7868 | 7868 | # else
|
7869 | 7869 | # ifdef __cpp_lib_shared_mutex
|
7870 |
| -# error "__cpp_lib_shared_mutex should not be defined when the requirement '_LIBCPP_HAS_THREADS' is not met!" |
| 7870 | +# error "__cpp_lib_shared_mutex should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS' is not met!" |
7871 | 7871 | # endif
|
7872 | 7872 | # endif
|
7873 | 7873 |
|
|
7885 | 7885 | # error "__cpp_lib_shared_ptr_weak_type should have the value 201606L in c++26"
|
7886 | 7886 | # endif
|
7887 | 7887 |
|
7888 |
| -# if _LIBCPP_HAS_THREADS |
| 7888 | +# if !defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS |
7889 | 7889 | # ifndef __cpp_lib_shared_timed_mutex
|
7890 | 7890 | # error "__cpp_lib_shared_timed_mutex should be defined in c++26"
|
7891 | 7891 | # endif
|
|
7894 | 7894 | # endif
|
7895 | 7895 | # else
|
7896 | 7896 | # ifdef __cpp_lib_shared_timed_mutex
|
7897 |
| -# error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '_LIBCPP_HAS_THREADS' is not met!" |
| 7897 | +# error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_HAS_THREADS' is not met!" |
7898 | 7898 | # endif
|
7899 | 7899 | # endif
|
7900 | 7900 |
|
|
0 commit comments