svn commit: r228897 - head/sys/sys

Ed Schouten ed at FreeBSD.org
Mon Dec 26 10:58:22 UTC 2011


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. */


More information about the svn-src-head mailing list