From: Joel Brobecker Date: Wed, 22 Jan 2014 07:42:27 +0000 (+0400) Subject: ada-lang.c: Really include "ui-out.h". X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=467d141bf5399b1092118981da1143523b19b896;p=deliverable%2Fbinutils-gdb.git ada-lang.c: Really include "ui-out.h". 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". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6cedbd9775..c949c02158 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-01-27 Joel Brobecker + + * ada-lang.c: Remove "#ifdef UI_OUT" condition for including + "ui-out.h". + 2014-01-27 Joel Brobecker * ada-typeprint (type_is_full_subrange_of_target_type): diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index a1b638c1bf..2630456a72 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -44,9 +44,7 @@ #include "ada-lang.h" #include "completer.h" #include -#ifdef UI_OUT #include "ui-out.h" -#endif #include "block.h" #include "infcall.h" #include "dictionary.h"