/usr/include/bits/in.h is invalid C++
Horst von Brand
vonbrand@sleipnir.valparaiso.cl
Thu Apr 1 00:00:00 GMT 1999
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
More information about the Libc-alpha
mailing list