diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-10-13 22:03:53 +0400 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-10-13 22:03:53 +0400 |
commit | 7ba816036085c5c76fc0467a03740bf096807a33 (patch) | |
tree | 2b265272ca397114c0ecf301c6a6d97117a3339b /libcxx/include/cstdlib | |
parent | 44e58f9eb1ee03a6fe965293de5267094c393367 (diff) |
Dimitry Andric: FreeBSD only: Add the C11 aligned_alloc to <cstdlib> and adjust the inclusion of quick_exit.
llvm-svn: 165882
Diffstat (limited to 'libcxx/include/cstdlib')
-rw-r--r-- | libcxx/include/cstdlib | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/include/cstdlib b/libcxx/include/cstdlib index bf8e85e7bdb1..7f6c6c82f7de 100644 --- a/libcxx/include/cstdlib +++ b/libcxx/include/cstdlib @@ -74,6 +74,9 @@ int mbtowc(wchar_t* restrict pwc, const char* restrict s, size_t n); int wctomb(char* s, wchar_t wchar); size_t mbstowcs(wchar_t* restrict pwcs, const char* restrict s, size_t n); size_t wcstombs(char* restrict s, const wchar_t* restrict pwcs, size_t n); +int at_quick_exit(void (*func)(void)) // C++11 +void quick_exit(int status); // C++11 +void *aligned_alloc(size_t alignment, size_t size); // C11 } // std @@ -135,6 +138,9 @@ using ::wcstombs; using ::at_quick_exit; using ::quick_exit; #endif +#ifdef _LIBCPP_HAS_C11_FEATURES +using ::aligned_alloc; +#endif // MSVC already has the correct prototype in <stdlib.h.h> #ifdef __cplusplus #if !defined(_MSC_VER) && !defined(__sun__) |