-
Notifications
You must be signed in to change notification settings - Fork 11.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc++] Remove workaround for C11 features on compilers that don't s…
…upport using_if_exists Instead of carrying around #ifdefs to determine whether those functions are available on the platform, unconditionally use the using_if_exists attribute to import it into namespace std only when available. That was the purpose of this attribute from the start. This change means that trying to use libc++ with an old SDK (or on an old platform for platforms that ship system headers in /usr/include) will require a recent Clang that supports the using_if_exists attribute. When using an older Clang or GCC, the underlying platform has to support a C11 standard library. Differential Revision: https://reviews.llvm.org/D108203
- Loading branch information
Showing
3 changed files
with
4 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters