From 0df48811699b83d09c552548effcb1718d6ff1d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aur=C3=A9lien=20Larcher?= Date: Mon, 21 May 2018 18:35:40 +0200 Subject: [PATCH] 9545 Global visibility of C11 functions in C++11 and C++17 in stdlib.h Reviewed by: Igor Kozhukhov Reviewed by: Andy Fiddaman Reviewed by: Robert Mustacchi Approved by: Gordon Ross --- usr/src/head/stdlib.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/usr/src/head/stdlib.h b/usr/src/head/stdlib.h index 8583aa51bd..6ec82aa1c2 100644 --- a/usr/src/head/stdlib.h +++ b/usr/src/head/stdlib.h @@ -80,6 +80,18 @@ using std::wcstombs; using std::wctomb; #endif +/* + * Allow global visibility for symbols defined in + * C++ "std" namespace in . + */ +#if __cplusplus >= 201103L +using std::at_quick_exit; +using std::quick_exit; +#endif +#if __cplusplus >= 201703L +using std::aligned_alloc; +#endif + #ifdef __cplusplus extern "C" { #endif -- 2.11.4.GIT