c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)

grant.jacobs@clear.net.nz grant.jacobs@clear.net.nz
Tue Apr 15 11:46:00 GMT 2003


>Number:         10411
>Category:       c
>Synopsis:       Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 15 11:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Grant Jacobs
>Release:        gcc 2.96/Linux, gcc 3.1/Mac OS X
>Organization:
>Environment:
gcc 2.96/Linux, gcc 3.1/Mac OS X
>Description:
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
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list