This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++ breakage when overriding system headers
- To: Jonathan Larmour <jlarmour at redhat dot com>
- Subject: Re: libstdc++ breakage when overriding system headers
- From: Jason Merrill <jason_merrill at redhat dot com>
- Date: 22 Aug 2001 11:23:27 +0100
- Cc: libstdc++ at sources dot redhat dot com
- References: <3B837B60.B54A9B7B@redhat.com>
>>>>> "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