This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Last <sys/cdefs.h> change


On May 23 09:30, Sebastian Huber wrote:
> Hello,
> 
> what is the reason for the change:
> [...]
> There is already a test for C11 some lines above:
> 
> #elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
> /* Do nothing.  They are language keywords. */
> #else
> /* Not supported.  Implement them using our versions. */
> 
> If you want C11 in GCC, you have to specify -std=c11 or -std=gnu11.

gcc >= 4.6 defines _Static_assert even without -std=C11.

See http://cygwin.com/ml/cygwin/2013-05/msg00310.html


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]