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.
This commit is contained in:
parent
0174e383ca
commit
020cc13c3a
5 changed files with 21 additions and 23 deletions
24
gdb/utils.c
24
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue