From 596f88bed8566ff67ab5cbde66cc59d5b78724ab Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Fri, 9 Aug 2002 13:18:30 +0000 Subject: [PATCH] added pack statements for gcc Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@131 --- include/dos_inc.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/dos_inc.h b/include/dos_inc.h index 353ce7c0..e644b505 100644 --- a/include/dos_inc.h +++ b/include/dos_inc.h @@ -22,8 +22,9 @@ #include #include +#if defined (_MSC_VER) #pragma pack(1) - +#endif# struct CommandTail{ Bit8u count; /* number of bytes returned */ char buffer[127]; /* the buffer itself */ @@ -94,9 +95,13 @@ struct FCB { Bit8u reserved[8]; Bit8u current_relative_record_number; //open doesn't set this Bit32u rel_record; //open does not handle this -}; - +} +#if defined (_MSC_VER) +; #pragma pack() +#else +__attribute__ ((packed)); +#endif struct DOS_Date { Bit16u year;