Permalink
Browse files

9545 Global visibility of C11 functions in C++11 and C++17 in stdlib.h

Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Reviewed by: Robert Mustacchi <robert.mustacchi@joyent.com>
Approved by: Gordon Ross <gwr@nexenta.com>
  • Loading branch information...
alarcher authored and gwr committed May 21, 2018
1 parent 06b0576 commit 0df48811699b83d09c552548effcb1718d6ff1d0
Showing with 12 additions and 0 deletions.
  1. +12 −0 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 <iso/stdlib_c11.h>.
*/
#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

0 comments on commit 0df4881

Please sign in to comment.