c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
Neil Booth
neil@daikokuya.co.uk
Tue Apr 15 19:36:00 GMT 2003
The following reply was made to PR c/10411; it has been noted by GNATS.
From: Neil Booth <neil@daikokuya.co.uk>
To: grant.jacobs@clear.net.nz
Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Subject: Re: c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
Date: Tue, 15 Apr 2003 20:29:09 +0100
grant.jacobs@clear.net.nz wrote:-
> Why is __STDC_VERSION__ not defined? I've tried this in gcc 2.96 & 3.1:
>
>
> #include <stdio.h>
>
> #if defined __STDC_VERSION__
> #define avail "yes!"
> #else
> #define avail "nope"
> #endif
>
> int main()
> {
> printf( "__STDC__ == '%d'\n", __STDC__ ) ;
> printf( "Is __STDC_VERSION__ defined: %s\n", avail ) ;
> }
>
>
> and it results in:
>
>
> __STDC__ == '1'
> Is __STDC_VERSION__ defined: nope
You're compiling in C89 mode I imagine.
Neil.
More information about the Gcc-prs
mailing list