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