From: Sascha Wildner Date: Thu, 9 Aug 2012 07:53:03 +0000 (+0200) Subject: : Adjust the visibility of our C11 functions. X-Git-Tag: v3.2.0~433 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/b8b8fcfe9148f1fce3c3cffd5e926f8e132d5dfe : Adjust the visibility of our C11 functions. --- diff --git a/include/stdlib.h b/include/stdlib.h index b6e46a9bc0..9e2f41f884 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -285,13 +285,6 @@ void srandomdev(void); long long strtonum(const char *, long long, long long, const char **); -/* - * C11 functions. - */ -int at_quick_exit(void (*func)(void)); -void quick_exit(int); -void *aligned_alloc(size_t, size_t); - /* Deprecated interfaces. */ #if !defined(_KERNEL_VIRTUAL) __int64_t @@ -302,6 +295,16 @@ __uint64_t extern char *suboptarg; /* getsubopt(3) external variable */ #endif /* __BSD_VISIBLE */ + +/* + * C11 functions. + */ +#if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L || __BSD_VISIBLE +int at_quick_exit(void (*func)(void)); +void quick_exit(int) __dead2; +void *aligned_alloc(size_t, size_t); +#endif /* __ISO_C_VISIBLE >= 2011 */ + __END_DECLS #endif /* !_STDLIB_H_ */