This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __STDC_VERSION__
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: __STDC_VERSION__
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 28 Dec 2000 18:24:29 +0000 (GMT)
- cc: Neil Booth <neil at daikokuya dot demon dot co dot uk>, <gcc at gcc dot gnu dot org>
On Thu, 28 Dec 2000, Jakub Jelinek wrote:
> cpp.texi description of __STDC_VERSION__ macro suggests that this macro must
> be defined unless -traditional, but this is not true with current cpplib.
> cccp used to define it always to 199409 unless -traditional was given.
> Is it correct not to define __STDC_VERSION__ for C89 (and thus shall we
> change cpp.texi) or should cpplib define it to 199409L as fallback?
__STDC_VERSION__ was introduced in AMD1, so it is correct not to define it
for C89 (though C89 has nothing to say on whether you define it or not,
but programs checking it may get confused if a C89 compiler does define
it).
--
Joseph S. Myers
jsm28@cam.ac.uk