diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-11-30 16:33:55 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-11-30 16:33:55 +0000 |
commit | 020cc13c3a0782029f408a8164a13a1e5af6d538 (patch) | |
tree | ead54c7e69e02186382d78e6231457461acc585e /gdb/utils.c | |
parent | 0174e383ca06a8115b179428d4f68a7bdd3e08f2 (diff) | |
download | gdb-020cc13c3a0782029f408a8164a13a1e5af6d538.zip gdb-020cc13c3a0782029f408a8164a13a1e5af6d538.tar.gz gdb-020cc13c3a0782029f408a8164a13a1e5af6d538.tar.bz2 |
2002-11-30 Andrew Cagney <cagney@redhat.com>
* exec.c (xfer_memory): Replace boolean with int.
* p-exp.y: Use 0 instead of false.
* corelow.c (gdb_check_format): Change return type to int from
boolean.
* utils.c: Don't include <curses.h> or <term.h> first.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 06fb593..58af78a 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -20,23 +20,6 @@ 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" - -#ifdef HAVE_CURSES_H -#include <curses.h> -#endif -#ifdef HAVE_TERM_H -#include <term.h> -#endif - #include "defs.h" #include "gdb_assert.h" #include <ctype.h> @@ -68,6 +51,13 @@ #include <sys/param.h> /* For MAXPATHLEN */ +#ifdef HAVE_CURSES_H +#include <curses.h> +#endif +#ifdef HAVE_TERM_H +#include <term.h> +#endif + #include <readline/readline.h> #ifdef USE_MMALLOC |