This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: libstdc++ breakage when overriding system headers


>>>>> "Jonathan" == Jonathan Larmour <jlarmour@redhat.com> writes:

> In file included from
> /home/jlarmour/sourceware/test/arm-elf/include/g++-v3/bits/std_ctime.h:40,
...
> /home/jlarmour/sourceware/test/arm-elf/H-i686-pc-linux-gnu/arm-elf/include/time.h:35:

To avoid this sort of problem, only a file named time.h should
#include_next time.h, presumably with an #ifdef _STD_CTIME_H or some such.

But that still leaves the question of how to override the C library headers
and still have the libstdc++ headers come before them.  I don't think the
current cpp flags provide any way to do this.

Jason


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