aboutsummaryrefslogtreecommitdiff
path: root/include/coff/pe.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-07 03:28:54 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-07 03:28:54 +0000
commit25bcc51d8f60fcd875d25877ea5caeaeab49681d (patch)
tree52a8eef066607e82f6c2e07a9356025031e11fd5 /include/coff/pe.h
parentc4bf532f532aea200523038a5dee87fea1588f1d (diff)
downloadgdb-25bcc51d8f60fcd875d25877ea5caeaeab49681d.zip
gdb-25bcc51d8f60fcd875d25877ea5caeaeab49681d.tar.gz
gdb-25bcc51d8f60fcd875d25877ea5caeaeab49681d.tar.bz2
1999-09-06 Donn Terry <donn@interix.com>
* internal.h (DTYPE): Define. * pe.h (struct external_PEI_filehdr): Rename from external_PE_filehdr. Define even if COFF_IMAGE_WITH_PE is not defined.
Diffstat (limited to 'include/coff/pe.h')
-rw-r--r--include/coff/pe.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/coff/pe.h b/include/coff/pe.h
index 7e676a5..7ea1f6c 100644
--- a/include/coff/pe.h
+++ b/include/coff/pe.h
@@ -76,12 +76,7 @@
#undef FILNMLEN
#define FILNMLEN 18 /* # characters in a file name */
-
-#ifdef COFF_IMAGE_WITH_PE
-/* The filehdr is only weired in images */
-
-#undef FILHDR
-struct external_PE_filehdr
+struct external_PEI_filehdr
{
/* DOS header fields */
char e_magic[2]; /* Magic number, 0x5a4d */
@@ -119,12 +114,16 @@ struct external_PE_filehdr
};
+#ifdef COFF_IMAGE_WITH_PE
+
+/* The filehdr is only weird in images */
-#define FILHDR struct external_PE_filehdr
+#undef FILHDR
+#define FILHDR struct external_PEI_filehdr
#undef FILHSZ
#define FILHSZ 152
-#endif
+#endif /* COFF_IMAGE_WITH_PE */
typedef struct
{