diff options
author | theraven <theraven@FreeBSD.org> | 2011-12-07 21:17:50 +0000 |
---|---|---|
committer | theraven <theraven@FreeBSD.org> | 2011-12-07 21:17:50 +0000 |
commit | cac815ea0554d211072533625da9c9fa4ac5da7d (patch) | |
tree | 4e94fb0c71e04f4ade6f91012001261fb17c4827 /sys/sys | |
parent | 6dd477b894442f73fdefb1839f590b35fc937b6c (diff) | |
download | FreeBSD-src-cac815ea0554d211072533625da9c9fa4ac5da7d.zip FreeBSD-src-cac815ea0554d211072533625da9c9fa4ac5da7d.tar.gz |
As per das@'s suggestion, s/__noreturn/_Noreturn/, since the latter is an
identifier reserved for the implementation in C99 and earlier so there is
no sensible reason for introducing yet another reserved identifier when we
could just use the one C1x uses.
Approved by: brooks (mentor)
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/cdefs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index ca485b3..e7f447d 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -220,13 +220,13 @@ #if defined(__cplusplus) && __cplusplus >= 201103L -#define __noreturn [[noreturn]] +#define _Noreturn [[noreturn]] #elif defined(__STDC_VERSION__) && __STDC_VERSION__ > 201000L -#define __noreturn _Noreturn +/* Do nothing - _Noreturn is a keyword */ #elif defined(__GNUC__) -#define __noreturn __attribute__((__noreturn__)) +#define _Noreturn __attribute__((__noreturn__)) #else -#define __noreturn +#define _Noreturn #endif #if __GNUC_PREREQ__(2, 96) |