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++


Horst von Brand <vonbrand@sleipnir.valparaiso.cl> writes:

> 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++?

By having seen extern "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.

Well, then talk to Jason Merrill.  I was under the impression
implemented this meanwhile.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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