Print this page
9545 Global visibility of C11 functions in C++11 and C++17

Split Close
Expand all
Collapse all
          --- old/usr/src/head/stdlib.h
          +++ new/usr/src/head/stdlib.h
↓ open down ↓ 72 lines elided ↑ open up ↑
  73   73  using std::realloc;
  74   74  using std::srand;
  75   75  using std::strtod;
  76   76  using std::strtol;
  77   77  using std::strtoul;
  78   78  using std::system;
  79   79  using std::wcstombs;
  80   80  using std::wctomb;
  81   81  #endif
  82   82  
       83 +/*
       84 + * Allow global visibility for symbols defined in
       85 + * C++ "std" namespace in <iso/stdlib_c11.h>.
       86 + */
       87 +#if __cplusplus >= 201103L
       88 +using std::at_quick_exit;
       89 +using std::quick_exit;
       90 +#endif
       91 +#if __cplusplus >= 201703L
       92 +using std::aligned_alloc;
       93 +#endif
       94 +
  83   95  #ifdef  __cplusplus
  84   96  extern "C" {
  85   97  #endif
  86   98  
  87   99  #ifndef _UID_T
  88  100  #define _UID_T
  89  101  typedef unsigned int    uid_t;          /* UID type             */
  90  102  #endif  /* !_UID_T */
  91  103  
  92  104  /* large file compilation environment setup */
↓ open down ↓ 213 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX