Date: Tue, 30 Jul 1996 04:02:41 +1000 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, wollman@lcs.mit.edu Cc: current@freebsd.org Subject: Re: `const char rcsid[]' vs -traditional Message-ID: <199607291802.EAA08896@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> Many sources no longer compile with non-ANSI compilers because they >> begin with >> const char rcsid[] = ... >So? It's broken for non-ANSI compilers. The correct way to fix this is to move the declarations after the #includes so that <sys/cdefs.h> happens to be included, but this is too large a change for me. It's inconsistent with the care taken in other parts of the sources. E.g., /usr/src/lib/libc/gen/getosreldate.c, which was written by someone named wollman, begins with a `const char rcsid[]' but then uses an ugly `#if __STDC__' to use a new-style header for ANSI compilers without (further) breaking things for non-ANSI compilers. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607291802.EAA08896>