Print this page
9553 C11 functions quick_exit and at_quick_exit should be visible in C++11.

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/stdlib_c11.h
          +++ new/usr/src/head/iso/stdlib_c11.h
↓ open down ↓ 50 lines elided ↑ open up ↑
  51   51  #if !defined(_NORETURN_KYWD)
  52   52  #if __STDC_VERSION__ - 0 >= 201112L
  53   53  #define _NORETURN_KYWD  _Noreturn
  54   54  #else
  55   55  #define _NORETURN_KYWD
  56   56  #endif  /* __STDC_VERSION__ - 0 >= 201112L */
  57   57  #endif  /* !defined(_NORETURN_KYWD) */
  58   58  
  59   59  #if !defined(_STRICT_SYMBOLS) || defined(_STDC_C11)
  60   60  extern void *aligned_alloc(size_t, size_t);
       61 +#endif /* !_STRICT_SYMBOLS || _STDC_C11 */
       62 +
       63 +#if !defined(_STRICT_SYMBOLS) || defined(_STDC_C11) || __cplusplus >= 201103L
  61   64  extern int at_quick_exit(void (*)(void));
  62   65  extern _NORETURN_KYWD void quick_exit(int);
  63      -#endif /* !_STRICT_SYMBOLS || _STDC_C11 */
       66 +#endif /* !_STRICT_SYMBOLS || _STDC_C11 || __cplusplus >= 201103L */
  64   67  
  65   68  #if __cplusplus >= 199711L
  66   69  }
  67   70  #endif
  68   71  
  69   72  #ifdef __cplusplus
  70   73  }
  71   74  #endif
  72   75  
  73   76  #endif /* _ISO_STDLIB_C11_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX