From aa38d08dab03ec3a8fcbbad5e874e89d4953958e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 13 Oct 2015 01:47:01 +0200 Subject: m doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/stdnoreturn.h | 14 ++++++++++---- 1 file 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 " requires that C11 or newer revision is used." #endif +#if !defined(_SLIBC_SUPPRESS_WARNINGS) && defined(__PORTABLE) +# warning " 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 -- cgit v1.2.3-70-g09d2