libbfd.h and libcoff.h include guards
authorAlan Modra <amodra@gmail.com>
Thu, 17 May 2018 23:00:50 +0000 (08:30 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 18 May 2018 03:37:21 +0000 (13:07 +0930)
* libbfd-in.h: Add include guard.
* libcoff-in.h: Likewise.
* doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
* doc/Makefile.in: Regenerate.
* libbfd.h: Regenerate.
* libcoff.h: Regenerate.

bfd/ChangeLog
bfd/doc/Makefile.am
bfd/doc/Makefile.in
bfd/libbfd-in.h
bfd/libbfd.h
bfd/libcoff-in.h
bfd/libcoff.h

index d2c520197093767eae92338003802ce64efbbc4c..85d2fb1ae3591fe169957961aa48c695dcd974c4 100644 (file)
@@ -1,3 +1,12 @@
+2018-05-18  Alan Modra  <amodra@gmail.com>
+
+       * libbfd-in.h: Add include guard.
+       * libcoff-in.h: Likewise.
+       * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
+       * doc/Makefile.in: Regenerate.
+       * libbfd.h: Regenerate.
+       * libcoff.h: Regenerate.
+
 2018-05-16  Maciej W. Rozycki  <macro@mips.com>
 
        * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
index 4657e37a288cd2e602edc3dfcb850f9552f0a0a5..8e9d831bc9e6669007f4689f158016ff25327ae0 100644 (file)
@@ -277,6 +277,7 @@ libbfd.h: $(LIBBFD_H_DEP)
        echo "#ifdef __cplusplus" >> $@
        echo "}" >> $@
        echo "#endif" >> $@
+       echo "#endif" >> $@
 
 LIBCOFF_H_DEP = \
        $(srcdir)/../libcoff-in.h       \
@@ -299,6 +300,7 @@ libcoff.h: $(LIBCOFF_H_DEP)
        echo "#ifdef __cplusplus" >> $@
        echo "}" >> $@
        echo "#endif" >> $@
+       echo "#endif" >> $@
 
 BFD_H_DEP = \
        $(srcdir)/../bfd-in.h           \
index a80dc75fe39d9a5303e61e87b0de877071d70829..6ce67ce5788fbc09bae6ad3ad20ebc9d9491b2aa 100644 (file)
@@ -1013,6 +1013,7 @@ libbfd.h: $(LIBBFD_H_DEP)
        echo "#ifdef __cplusplus" >> $@
        echo "}" >> $@
        echo "#endif" >> $@
+       echo "#endif" >> $@
 
 libcoff.h: $(LIBCOFF_H_DEP)
        echo "$(LIBCOFF_H_DEP)" | sed -f $(srcdir)/header.sed > $@
@@ -1028,6 +1029,7 @@ libcoff.h: $(LIBCOFF_H_DEP)
        echo "#ifdef __cplusplus" >> $@
        echo "}" >> $@
        echo "#endif" >> $@
+       echo "#endif" >> $@
 
 bfd.h: $(BFD_H_DEP)
        echo "$(BFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@
index d8b445f894269f5ff6a0df67366135458a78508c..a763f97faa0e603e5d218c78e322fe5785425d3f 100644 (file)
@@ -22,6 +22,9 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
    MA 02110-1301, USA.  */
 
+#ifndef _LIBBFD_H
+#define _LIBBFD_H 1
+
 #include "hashtab.h"
 
 #ifdef __cplusplus
index 495ffb49f7e8c85011be9225bac9e557ff013525..0fe4a94181fe78f8fbf0a0c90a1178b68680e389 100644 (file)
@@ -27,6 +27,9 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
    MA 02110-1301, USA.  */
 
+#ifndef _LIBBFD_H
+#define _LIBBFD_H 1
+
 #include "hashtab.h"
 
 #ifdef __cplusplus
@@ -3231,3 +3234,4 @@ bfd_boolean _bfd_generic_verify_endian_match
 #ifdef __cplusplus
 }
 #endif
+#endif
index d0b18cf6530d39d981d87b5e75325770278d335a..edb1b7dc86a890a67aa905851a2fc9b0483fdb7e 100644 (file)
@@ -19,6 +19,9 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
    MA 02110-1301, USA.  */
 
+#ifndef _LIBCOFF_H
+#define _LIBCOFF_H 1
+
 #include "bfdlink.h"
 #include "coff-bfd.h"
 
index 653a0089d80b43d021b7886175083c9c9610ea3b..a31866faacced318e60a7f15d79ac2c9a5f2577b 100644 (file)
@@ -23,6 +23,9 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
    MA 02110-1301, USA.  */
 
+#ifndef _LIBCOFF_H
+#define _LIBCOFF_H 1
+
 #include "bfdlink.h"
 #include "coff-bfd.h"
 
@@ -973,3 +976,4 @@ typedef struct
 #ifdef __cplusplus
 }
 #endif
+#endif
This page took 0.031705 seconds and 4 git commands to generate.