This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/commit] Fix nested header include in infttrace.h
- From: Randolph Chung <randolph at tausq dot org>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 26 May 2004 09:57:22 -0700
- Subject: Re: [patch/commit] Fix nested header include in infttrace.h
- References: <20040526154101.GA7207@tausq.org> <40B4CA7D.7080302@gnu.org>
- Reply-to: Randolph Chung <randolph at tausq dot org>
> Unfortunatly this is a GCC extension. It sounds like a header file is
really?! wow...
fwiw, this works with the ANSI C hp compiler too, and hpux is the only
thing that uses infttrace.h ....
> missing:
> #ifndef FOO_H
> #define FOO_H
> #endif
> wrappers? Adding them is ``obvious''.
no, it's not that... this brings in target.h "too early", so that when
a C file tries to include tm.h, we cannot override some #defines.
the alternative is:
+#undef PC_REQUIRES_RUN_BEFORE_USE
#define PC_REQUIRES_RUN_BEFORE_USE(pc) hppa_pc_requires_run_before_use (pc)
in config/pa/tm-hppa.h.
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/