Date: Mon, 26 Dec 2011 10:58:22 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r228897 - head/sys/sys Message-ID: <201112261058.pBQAwMc7003650@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Mon Dec 26 10:58:21 2011 New Revision: 228897 URL: http://svn.freebsd.org/changeset/base/228897 Log: The standard is now called C11 -- C12. While there, compare against the proper __STDC_VERSION value. Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h ============================================================================== --- head/sys/sys/cdefs.h Mon Dec 26 09:07:08 2011 (r228896) +++ head/sys/sys/cdefs.h Mon Dec 26 10:58:21 2011 (r228897) @@ -223,7 +223,7 @@ #endif /* - * Keywords added in C1X. + * Keywords added in C11. */ #if defined(__cplusplus) && __cplusplus >= 201103L #define _Alignas(e) alignas(e) @@ -231,7 +231,7 @@ #define _Noreturn [[noreturn]] #define _Static_assert(e, s) static_assert(e, s) #define _Thread_local thread_local -#elif defined(__STDC_VERSION__) && __STDC_VERSION__ > 201000L +#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L /* Do nothing. They are language keywords. */ #else /* Not supported. Implement them using our versions. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112261058.pBQAwMc7003650>