added pack statements for gcc
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@132
This commit is contained in:
parent
596f88bed8
commit
9e353cf2d7
5 changed files with 35 additions and 10 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
#if defined (_MSC_VER)
|
||||
#pragma pack(1)
|
||||
#endif#
|
||||
#endif
|
||||
struct CommandTail{
|
||||
Bit8u count; /* number of bytes returned */
|
||||
char buffer[127]; /* the buffer itself */
|
||||
|
|
|
@ -35,7 +35,9 @@ enum {
|
|||
DOS_ATTR_ARCHIVE= 0x20
|
||||
};
|
||||
|
||||
#pragma pack (1)
|
||||
#if defined (_MSC_VER)
|
||||
#pragma pack(1)
|
||||
#endif
|
||||
struct DTA_FindBlock {
|
||||
Bit8u sdrive; /* The Drive the search is taking place */
|
||||
Bit16u sattr; /* The attributes that need to be found */
|
||||
|
@ -45,8 +47,13 @@ struct DTA_FindBlock {
|
|||
Bit16u date;
|
||||
Bit32u size;
|
||||
char name[DOS_NAMELENGTH];
|
||||
};
|
||||
#pragma pack ()
|
||||
}
|
||||
#if defined (_MSC_VER)
|
||||
;
|
||||
#pragma pack()
|
||||
#else
|
||||
__attribute__ ((packed));
|
||||
#endif
|
||||
|
||||
class DOS_File {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue