From b8b8fcfe9148f1fce3c3cffd5e926f8e132d5dfe Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Thu, 9 Aug 2012 09:53:03 +0200 Subject: [PATCH] : Adjust the visibility of our C11 functions. --- include/stdlib.h | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/include/stdlib.h b/include/stdlib.h index b6e46a9..9e2f41f 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_ */ -- 1.7.7.2