__STDC_VERSION__
Joseph S. Myers
jsm28@cam.ac.uk
Thu Dec 28 10:24:00 GMT 2000
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
More information about the Gcc
mailing list