aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-03-01 06:19:28 +0000
committerAndrew Cagney <cagney@redhat.com>2002-03-01 06:19:28 +0000
commitf33c6cbfe5d16558554b5eda87a10625285b291c (patch)
tree6adb9322146266510cbf06f345d0efb0c85dc8ca /gdb/utils.c
parent5ecaa7ddacc5999c6de487fc5841468f67dcb5fb (diff)
downloadbinutils-f33c6cbfe5d16558554b5eda87a10625285b291c.zip
binutils-f33c6cbfe5d16558554b5eda87a10625285b291c.tar.gz
binutils-f33c6cbfe5d16558554b5eda87a10625285b291c.tar.bz2
Add FIXME explaining include problem.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index af1a103..be9dc45 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -20,10 +20,16 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+/* FIXME: cagney/2002-02-28: The GDB coding standard indicates that
+ "defs.h" should be included first. Unfortunatly some systems
+ (currently Debian GNU/Linux) include the <stdbool.h> via <curses.h>
+ and they clash with "bfd.h"'s definiton of true/false. The correct
+ fix is to remove true/false from "bfd.h", however, until that
+ happens, hack around it by including "config.h" and <curses.h>
+ first. */
+
#include "config.h"
-/* Include before "bfd.h" so that we get stdbool.h in time, if <curses.h>
- brings it in. */
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif