From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22590 invoked by alias); 15 Apr 2003 19:36:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 22572 invoked by uid 71); 15 Apr 2003 19:36:01 -0000 Date: Tue, 15 Apr 2003 19:36:00 -0000 Message-ID: <20030415193601.22564.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Neil Booth Subject: Re: c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1) Reply-To: Neil Booth X-SW-Source: 2003-04/txt/msg00711.txt.bz2 List-Id: The following reply was made to PR c/10411; it has been noted by GNATS. From: Neil Booth 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 > > #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.