This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: __STDC_VERSION__


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]