Mail Archives: djgpp-workers/2003/02/03/02:32:44
> ams AT ludd DOT luth DOT se wrote:
> > We have a problem. gcc only recognise "restrict" if "-std=c99" is
> > given on the command line.
> Perhaps we should add that flag to gcc.opt?
Well, we can't unless we want to rule out compiling libc with gcc
2.95.3. (I don't.)
However, meanwhile I've wondering if having a libc compiled with
restrict and using headers without restrict or vice versa can be
> > So we'll need some macro or some way knowing when c99 is in
> > effect. Alas I can't find one. I've been looking at the verbose output
> > from gcc.
> > Any ideas?
> C99 standard, section 6.10.8: "Predefined macro names" includes:
> __STDC_VERSION__ The integer constant 199901L.
> It says in the footnote that the previous version was 199409L.
Thanks! And to CBFalconer too!
- Raw text -