aboutsummaryrefslogtreecommitdiffstats
path: root/include/stdnoreturn.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-29 04:31:14 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-29 04:31:14 +0200
commit6fe45b4c7578cc9da7538dd9f57be6d8df730b3b (patch)
tree4399d20af6a514ac070615fb5b781eb85fcc46ab /include/stdnoreturn.h
parentonly use __attributes__ if compiling with gcc (diff)
downloadslibc-6fe45b4c7578cc9da7538dd9f57be6d8df730b3b.tar.gz
slibc-6fe45b4c7578cc9da7538dd9f57be6d8df730b3b.tar.bz2
slibc-6fe45b4c7578cc9da7538dd9f57be6d8df730b3b.tar.xz
add __C11__, __C99__, __C90__, and __noreturn
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include/stdnoreturn.h')
-rw-r--r--include/stdnoreturn.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/stdnoreturn.h b/include/stdnoreturn.h
index fd54d1b..19c6016 100644
--- a/include/stdnoreturn.h
+++ b/include/stdnoreturn.h
@@ -20,12 +20,15 @@
#include <slibc/version.h>
+#include <slibc/features.h>
+
+
/**
* Specifies that a function never returns, that is,
* the process exits before the function returns.
*/
-#if __STDC_VERSION__ < 201112L && defined(__GNUC__)
+#if !defined(__C11__) && defined(__GNUC__)
# define _Noreturn __attribute__((noreturn))
#endif
#define noreturn _Noreturn