ada-lang.c: Really include "ui-out.h".
authorJoel Brobecker <brobecker@adacore.com>
Wed, 22 Jan 2014 07:42:27 +0000 (11:42 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 27 Jan 2014 04:29:47 +0000 (08:29 +0400)
Currently, ada-lang.c pretends to include "ui-out.h" as follow:

    #ifdef UI_OUT
    #include "ui-out.h"
    #endif

However, UI_OUT is never defined as far as I can tell. This is confirmed
by rebuilding with a #error pragma inside the #ifdef UI_OUT block,
which never triggers.

Since this unit makes references to declarations from ui-out.h,
this patch simply removes the #ifdef/#endif condition.  This has not
been an error so far because "ui-out.h" indirectly gets included,
via one of the other .h files being included.

gdb/ChangeLog:

        * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
        "ui-out.h".

gdb/ChangeLog
gdb/ada-lang.c

index 6cedbd97757aca77e7960b48efd6498e6f41c13c..c949c02158aeab7dcfc0c0221571774f9f024cef 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-27  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
+       "ui-out.h".
+
 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
 
        * ada-typeprint (type_is_full_subrange_of_target_type):
index a1b638c1bf4dd771ca9905e00f13d3c52fc7adb2..2630456a72d4214444ac1cddad8ba4ef6bc44279 100644 (file)
@@ -44,9 +44,7 @@
 #include "ada-lang.h"
 #include "completer.h"
 #include <sys/stat.h>
-#ifdef UI_OUT
 #include "ui-out.h"
-#endif
 #include "block.h"
 #include "infcall.h"
 #include "dictionary.h"
This page took 0.055023 seconds and 4 git commands to generate.