public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Grant Jacobs <grant.jacobs@clear.net.nz>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
Date: Tue, 15 Apr 2003 22:56:00 -0000	[thread overview]
Message-ID: <20030415225601.16617.qmail@sources.redhat.com> (raw)

The following reply was made to PR c/10411; it has been noted by GNATS.

From: Grant Jacobs <grant.jacobs@clear.net.nz>
To: Neil Booth <neil@daikokuya.co.uk>
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: Wed, 16 Apr 2003 10:56:51 +1200

 Yes, you're quite right... sorry. For some reason I thought that ISO 
 amendment 1 (i.e. 1994) would be the default :(  (Never assume and 
 all that...)  I didn't think that the default would be set so far 
 back! After all 1994 is all of 9 years ago and I'd have naively 
 thought that the dust would have well and truly settled on any issues 
 with that amendment by now -- ?
 
 While I'm writing, is there any sense for 'gcc --version' to also 
 output the default version of the language(s), as I presume this 
 occasionally changes. At some point, surely, you'll bring the default 
 up to a more recent standard...?
 
 Grant
 
 At 8:29 PM +0100 15/4/03, Neil Booth wrote:
 >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.
 
 
 -- 
 --------------------------------------------------------
 Grant Jacobs                   grant.jacobs@clear.net.nz
 McAndrew Bay, Dunedin,                ph. +64 3 476 1820
 NEW ZEALAND.                         fax. +64 3 476 1825


             reply	other threads:[~2003-04-15 22:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-15 22:56 Grant Jacobs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-04-15 23:01 neil
2003-04-15 19:36 Neil Booth
2003-04-15 11:46 grant.jacobs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030415225601.16617.qmail@sources.redhat.com \
    --to=grant.jacobs@clear.net.nz \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).