Date: Sat, 18 Apr 1998 16:45:41 +1000 From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@hub.freebsd.org, rivers@dignus.com Subject: Re: bin/6332: time.h doesn't compile with -traditional Message-ID: <199804180645.QAA11104@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
> > >Fix: > > > > Replace uses of 'const' with the __const keyword defined in cdefs.h. > > > > Let me add to that, that uses of "const" for prototype definitions > aren't the problem; it's uses of "const" outside of the __P() macro. This may be another bug :-). cdefs.h gives a null __P() for all non-ANSI compilers although `gcc -traditional' supports prototypes. > I imagine such uses are more infrequent. Yes, but they are still frequent. My header checker reports about 36 headers that compile with `gcc -traditional -Dconst= -Dvolatile=' but not with `gcc -traditional'. <time.h> is the most annoying of these because it is included by many other headers, so it is worth fixing. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804180645.QAA11104>