This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: /usr/include/bits/in.h is invalid C++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]