summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorAurélien Larcher <aurelien.larcher@gmail.com>2018-05-24 20:13:04 +0200
committerDan McDonald <danmcd@joyent.com>2018-05-25 10:18:54 -0400
commit27df165cb1057f761e8c77051edac6c560d1e4d9 (patch)
tree285e3209371beed591625901789f78f110816579 /usr
parent1cdca625ac0e1e0a31db02a0dc4be33ae14b64cc (diff)
downloadillumos-joyent-27df165cb1057f761e8c77051edac6c560d1e4d9.tar.gz
9553 C11 functions quick_exit and at_quick_exit should be visible in C++11.
Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Reviewed by: Robert Mustacchi <robert.mustacchi@joyent.com> Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr')
-rw-r--r--usr/src/head/iso/stdlib_c11.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/head/iso/stdlib_c11.h b/usr/src/head/iso/stdlib_c11.h
index 69334f5985..b02ef2d884 100644
--- a/usr/src/head/iso/stdlib_c11.h
+++ b/usr/src/head/iso/stdlib_c11.h
@@ -58,9 +58,12 @@ namespace std {
#if !defined(_STRICT_SYMBOLS) || defined(_STDC_C11)
extern void *aligned_alloc(size_t, size_t);
+#endif /* !_STRICT_SYMBOLS || _STDC_C11 */
+
+#if !defined(_STRICT_SYMBOLS) || defined(_STDC_C11) || __cplusplus >= 201103L
extern int at_quick_exit(void (*)(void));
extern _NORETURN_KYWD void quick_exit(int);
-#endif /* !_STRICT_SYMBOLS || _STDC_C11 */
+#endif /* !_STRICT_SYMBOLS || _STDC_C11 || __cplusplus >= 201103L */
#if __cplusplus >= 199711L
}