Failure to bootstrap current gcc trunk on cygwin (20111207 snapshot): conflicting declarations in cygwin's /usr/include/sys/wait.h

Ian Lance Taylor iant@google.com
Thu Dec 8 01:09:00 GMT 2011


Jonathan Wakely <jwakely.gcc@gmail.com> writes:

>> Should the Cygwin header use
>> extern "C++" on those declarations even though they're inside #ifdef
>> __cplusplus, or should adaint.c not #include things inside extern "C"?
>
> You could surround them in extern "C++", linkage specifications nest.

...but I think it would be better for adaint.c to not #include system
header files inside extern "C".

Ian



More information about the Gcc mailing list