"gdb_curses.h" instead of before.
* tui/tui-io.c: Likewise.
2004-04-09 Mark Kettenis <kettenis@gnu.org>
+ * tui/tui-hooks.c: Include "readline/readline.h" after
+ "gdb_curses.h" instead of before.
+ * tui/tui-io.c: Likewise.
+
* tui/tui.c: Fix typo in comment.
* sparc64-tdep.c (sparc_address_from_register): Remove function.
#include "gdb-events.h"
#include "ui-out.h"
#include "top.h"
-#include "readline/readline.h"
#include <unistd.h>
#include <fcntl.h>
#include "gdb_curses.h"
+/* This redefines CTRL if it is not already defined, so it must come
+ after terminal state releated include files like <term.h> and
+ "gdb_curses.h". */
+#include "readline/readline.h"
+
int tui_target_has_run = 0;
static void (* tui_target_new_objfile_chain) (struct objfile*);
#include "event-top.h"
#include "command.h"
#include "top.h"
-#include "readline/readline.h"
#include "tui/tui.h"
#include "tui/tui-data.h"
#include "tui/tui-io.h"
#include "gdb_curses.h"
+/* This redefines CTRL if it is not already defined, so it must come
+ after terminal state releated include files like <term.h> and
+ "gdb_curses.h". */
+#include "readline/readline.h"
+
int
key_is_start_sequence (int ch)
{