diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-13 01:47:01 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-13 01:47:01 +0200 |
commit | aa38d08dab03ec3a8fcbbad5e874e89d4953958e (patch) | |
tree | 99421f67440b2d5677f898f61b9bbaca35b8d433 | |
parent | warning if stdalign or stdnoreturn are included without C11 (diff) | |
download | slibc-aa38d08dab03ec3a8fcbbad5e874e89d4953958e.tar.gz slibc-aa38d08dab03ec3a8fcbbad5e874e89d4953958e.tar.bz2 slibc-aa38d08dab03ec3a8fcbbad5e874e89d4953958e.tar.xz |
m doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | include/stdnoreturn.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/stdnoreturn.h b/include/stdnoreturn.h index 59e2ceb..2aad0c4 100644 --- a/include/stdnoreturn.h +++ b/include/stdnoreturn.h @@ -23,17 +23,23 @@ #if !defined(_SLIBC_SUPPRESS_WARNINGS) && !defined(__C99__) # warning "<stdnoreturn.h> requires that C11 or newer revision is used." #endif +#if !defined(_SLIBC_SUPPRESS_WARNINGS) && defined(__PORTABLE) +# warning "<stdnoreturn.h> is not portable because it conflicts with some compilers." +#endif +#if !defined(__PORTABLE) /** * Specifies that a function never returns, that is, - * the process exits before the function returns. + * the process exits or changes process image before + * the function returns. */ -#if !defined(__C11__) && defined(__GNUC__) -# define _Noreturn __attribute__((noreturn)) +# if !defined(__C11__) && defined(__GNUC__) +# define _Noreturn __attribute__((__noreturn__)) +# endif +# define noreturn _Noreturn #endif -#define noreturn _Noreturn |