1
0
Fork 0

added pack statements for gcc

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@132
This commit is contained in:
Peter Veenstra 2002-08-09 13:24:01 +00:00
parent 596f88bed8
commit 9e353cf2d7
5 changed files with 35 additions and 10 deletions

View file

@ -21,8 +21,9 @@
#include "mem.h"
#include "dos_inc.h"
#include "cpu.h"
#if defined (_MSC_VER)
#pragma pack(1)
#endif
struct EXE_Header {
@ -40,8 +41,13 @@ struct EXE_Header {
Bit16u initCS;
Bit16u reloctable;
Bit16u overlay;
};
}
#if defined (_MSC_VER)
;
#pragma pack()
#else
__attribute__ ((packed));
#endif
#define MAGIC1 0x5a4d
#define MAGIC2 0x4d5a

View file

@ -20,13 +20,19 @@
#include "mem.h"
#include "dos_inc.h"
#if defined (_MSC_VER)
#pragma pack(1)
#endif
struct DOS_TableCase {
Bit16u size;
Bit8u chars[256];
};
}
#if defined (_MSC_VER)
;
#pragma pack()
#else
__attribute__ ((packed));
#endif
RealPt DOS_TableUpCase;