| author | |
| committer | |
| log | 87d5db057b53fc643ac0c316653a46ada54b3c91 |
| tree | 296250ab1f065ce1516a10098d9ecf9055512dfb |
| parent | 92b69215e63a3303a5e904ab332e2eec236e0ed2 |
rc1 + 98feb20df14e6cf9ce77f097ceb8dd188c9070a72 files changed, 12 insertions(+), 1 deletions(-)
lib/libcxx/include/__config+11| ... | ... | @@ -352,6 +352,16 @@ |
| 352 | 352 | # define _LIBCPP_NO_CFI |
| 353 | 353 | #endif |
| 354 | 354 | |
| 355 | // If the compiler supports using_if_exists, pretend we have those functions and they'll | |
| 356 | // be picked up if the C library provides them. | |
| 357 | // | |
| 358 | // TODO: Once we drop support for Clang 12, we can assume the compiler supports using_if_exists | |
| 359 | // for platforms that don't have a conforming C11 library, so we can drop this whole thing. | |
| 360 | #if __has_attribute(using_if_exists) | |
| 361 | # define _LIBCPP_HAS_TIMESPEC_GET | |
| 362 | # define _LIBCPP_HAS_QUICK_EXIT | |
| 363 | # define _LIBCPP_HAS_ALIGNED_ALLOC | |
| 364 | #else | |
| 355 | 365 | #if (defined(__ISO_C_VISIBLE) && (__ISO_C_VISIBLE >= 2011)) || __cplusplus >= 201103L |
| 356 | 366 | # if defined(__FreeBSD__) |
| 357 | 367 | # define _LIBCPP_HAS_ALIGNED_ALLOC |
| ... | ... | @@ -406,6 +416,7 @@ |
| 406 | 416 | # endif |
| 407 | 417 | # endif // __APPLE__ |
| 408 | 418 | #endif |
| 419 | #endif // __has_attribute(using_if_exists) | |
| 409 | 420 | |
| 410 | 421 | #ifndef _LIBCPP_CXX03_LANG |
| 411 | 422 | # define _LIBCPP_ALIGNOF(_Tp) alignof(_Tp) |
lib/libcxx/include/ctime+1-1| ... | ... | @@ -59,7 +59,7 @@ int timespec_get( struct timespec *ts, int base); // C++17 |
| 59 | 59 | // we're detecting this here instead of in <__config> because we can't include |
| 60 | 60 | // system headers from <__config>, since it leads to circular module dependencies. |
| 61 | 61 | // This is also meant to be a very temporary workaround until the SDKs are fixed. |
| 62 | #if defined(__APPLE__) | |
| 62 | #if defined(__APPLE__) && !__has_attribute(using_if_exists) | |
| 63 | 63 | # include <sys/cdefs.h> |
| 64 | 64 | # if defined(_LIBCPP_HAS_TIMESPEC_GET) && (__DARWIN_C_LEVEL < __DARWIN_C_FULL) |
| 65 | 65 | # define _LIBCPP_HAS_TIMESPEC_GET_NOT_ACTUALLY_PROVIDED |