binutils-gdb/include/coff
Tom Tromey f559e52a8e Remove PEI_HEADERS define
I noticed a few files double-included libcoff.h, and digging deeper I
found that the PEI_HEADERS define is a sort of external include guard.

This patch adds include guards to the few files in include/coff that
were missing one, and then removes the PEI_HEADERS workaround and the
redundant includes.

I didn't see anything in these files that indicated that
double-inclusion would be useful, so it seems to me that this approach
is ok.

Tested by rebuilding with --enable-targets=all.

2023-08-02  Tom Tromey  <tromey@adacore.com>

	* pei-x86_64.c (PEI_HEADERS): Do not define.
	* pei-loongarch64.c (PEI_HEADERS): Do not define.
	* pei-aarch64.c (PEI_HEADERS): Do not define.
	* pe-x86_64.c (PEI_HEADERS): Do not define.
	* pe-aarch64.c (PEI_HEADERS): Do not define.
	* libpei.h (_LIBPEI_H): Add include guard.
	* coff-x86_64.c (PEI_HEADERS): Do not check.
	* coff-loongarch64.c (PEI_HEADERS): Do not check.
	* coff-aarch64.c (PEI_HEADERS): Do not check.

include/ChangeLog
2023-08-02  Tom Tromey  <tromey@adacore.com>

	* coff/x86_64.h (COFF_X86_64_H): Add include guard.
	* coff/loongarch64.h (COFF_LOONGARCH64_H): Add include guard.
	* coff/aarch64.h (COFF_AARCH64_H): Add include guard.
2023-08-03 07:39:15 -06:00
..
aarch64.h Remove PEI_HEADERS define 2023-08-03 07:39:15 -06:00
alpha.h
arm.h
ChangeLog-0415
ChangeLog-9103
ecoff.h ecoff find_nearest_line and final link leaks 2023-06-09 12:56:12 +09:30
external.h
i386.h
ia64.h
internal.h Revert "2.41 Release sources" 2023-08-02 12:06:23 +01:00
loongarch64.h Remove PEI_HEADERS define 2023-08-03 07:39:15 -06:00
mcore.h
mips.h
msdos.h
pe.h Define IMAGE_FILE_MACHINE_ARMNT 2023-05-30 12:51:57 +09:30
rs6k64.h
rs6000.h
sh.h
sym.h
symconst.h
ti.h
tic4x.h
tic30.h
tic54x.h
x86_64.h Remove PEI_HEADERS define 2023-08-03 07:39:15 -06:00
xcoff.h Re: Keeping track of rs6000-coff archive element pointers 2023-04-28 15:19:59 +09:30
z8k.h
z80.h