aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-13 01:47:01 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-13 01:47:01 +0200
commitaa38d08dab03ec3a8fcbbad5e874e89d4953958e (patch)
tree99421f67440b2d5677f898f61b9bbaca35b8d433 /include
parentwarning if stdalign or stdnoreturn are included without C11 (diff)
downloadslibc-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 'include')
-rw-r--r--include/stdnoreturn.h14
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