BFD: Fix unmatched #ifndef and #endif

Message ID 1464485353-13418-1-git-send-email-hong.gyu.kim@lge.com
State New, archived
Headers

Commit Message

Honggyu Kim May 29, 2016, 1:29 a.m. UTC
  bfd/bfd-in.h has '#ifndef __BFD_H_SEEN__' statement at the beginning of
the header file but do not have '#endif' at the end.

	* bfd/bfd-in.h: Add #endif statment
---
 bfd/bfd-in.h | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Andreas Schwab May 29, 2016, 7:29 a.m. UTC | #1
Honggyu Kim <hong.gyu.kim@lge.com> writes:

> bfd/bfd-in.h has '#ifndef __BFD_H_SEEN__' statement at the beginning of
> the header file but do not have '#endif' at the end.

It is closed in bfd-in2.h, which is generated from bfd-in.h.

Andreas.
  
Honggyu Kim May 29, 2016, 8:02 a.m. UTC | #2
On Sun, May 29, 2016 at 09:29:22AM +0200, Andreas Schwab wrote:
> Honggyu Kim <hong.gyu.kim@lge.com> writes:
> 
> > bfd/bfd-in.h has '#ifndef __BFD_H_SEEN__' statement at the beginning of
> > the header file but do not have '#endif' at the end.
> 
> It is closed in bfd-in2.h, which is generated from bfd-in.h.
> 
> Andreas.
>
Yes, you're right.  I didn't know that bfd-in.h just generates
bfd-in2.h.  But I had a compilation problem so somehow thought that
bfd-in.h could be a problem.  I posted the issue on the link below:
https://sourceware.org/bugzilla/show_bug.cgi?id=20106

Do you mind if I ask you to check the issue?  I think that gdb has to
be normally compiled in any other build environment.
Please correct me if I'm wrong.

Thanks,
Honggyu
  

Patch

diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 196bd70..ba36ee1 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -1026,3 +1026,5 @@  extern bfd_boolean v850_elf_create_sections
 
 extern bfd_boolean v850_elf_set_note
   (bfd *, unsigned int, unsigned int);
+
+#endif