This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Re: /usr/include/bits/in.h is invalid C++
- To: drepper@cygnus.com (Ulrich Drepper)
- Subject: Re: /usr/include/bits/in.h is invalid C++
- From: Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
- Date: Mon, 11 Jan 1999 23:25:59 -0400
- cc: libc-alpha@cygnus.com
Ulrich Drepper <drepper@cygnus.com> said:
> Horst von Brand <vonbrand@sleipnir.valparaiso.cl> writes:
> > It is a bug in the header, as this is _not_ legal C++, and the header is
> > shared with that language.
> Wrong. This is a C header and clearly marked as C. The compiler has
> to deal with this and latest egcs version do.
How so? It might be a C header, but if the structure is used from C++, it
is illegal. Also, how does the compiler distinguish between a.h which so
happens is supposed to be C and the _identical_ file b.c which is C++?
BTW, my egcs is next-to-last (19990103 can't be bootstrapped with
glibc-2.0.10[89]), so I doubt this is the explanation.
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile +56 32 672616