* tui/tui-hooks.c: Include "readline/readline.h" after
authorMark Kettenis <kettenis@gnu.org>
Fri, 9 Apr 2004 13:54:34 +0000 (13:54 +0000)
committerMark Kettenis <kettenis@gnu.org>
Fri, 9 Apr 2004 13:54:34 +0000 (13:54 +0000)
"gdb_curses.h" instead of before.
* tui/tui-io.c: Likewise.

gdb/ChangeLog
gdb/tui/tui-hooks.c
gdb/tui/tui-io.c

index 323696f23ff2b89110242beabd589cab849ba7d0..228ba9c3970bf4f245c7948a27b2f901a994c6aa 100644 (file)
@@ -1,5 +1,9 @@
 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.
index a864be2827640a012e4748c88a0b6516e308b5cd..a3a80dd51beff7b7f89608fba3335142da5a9173 100644 (file)
@@ -35,7 +35,6 @@
 #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*);
index addb3b003c44ba2fba36722dfb5a41baad53259b..a91a416900e999e6309e3059f1810b9df5c7a00a 100644 (file)
@@ -29,7 +29,6 @@
 #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)
 {