The standard is now called C11 -- C12.

While there, compare against the proper __STDC_VERSION value.
This commit is contained in:
ed 2011-12-26 10:58:21 +00:00
parent 5701d8b9ba
commit 2651501ed7

View File

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