+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.
+
1999-07-17 Nick Clifton <nickc@cygnus.com>
* arm.h (F_SOFT_FLOAT): Rename from F_SOFTFLOAT.
#define DT_ARY (3) /* array */
#define BTYPE(x) ((x) & N_BTMASK)
+#define DTYPE(x) (((x) & N_TMASK) >> N_BTSHFT)
#define ISPTR(x) \
(((unsigned long) (x) & N_TMASK) == ((unsigned long) DT_PTR << N_BTSHFT))
#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 */
};
+#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
{