Date: Tue, 29 Apr 1997 02:58:28 +1000 From: Bruce Evans <bde@zeta.org.au> To: freebsd-hackers@freefall.FreeBSD.ORG, ponds!rivers@dg-rtp.dg.com Subject: Re: netdb.h and -traditional. Message-ID: <199704281658.CAA26993@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>I was attempting to compile some older non-ANSI programs, that >require the -traditional option on GCC. > >Unfortunately, netdb.h (and possibly other headers) use ANSI >keywords (notably - 'const') which breaks this. ANSI keywords are supposed to be defined away for non-ANSI compilers unless NON_ANSI_KEYWORDS is defined. However, this is broken for gcc -traditional. A comment in <sys/cdefs.h> seems to say that this is intentional. >Should our header files be compilable by non-ANSI compilers? Not for much longer. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704281658.CAA26993>