Only use #pragma's in visual c
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1518
This commit is contained in:
parent
a6dfd08d16
commit
ce71f7d35a
1 changed files with 6 additions and 1 deletions
|
@ -146,6 +146,10 @@ void CPU_SetFlags(Bitu word,Bitu mask);
|
|||
#define DESC_CODE_R_C_A 0x1e
|
||||
#define DESC_CODE_R_C_NA 0x1f
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma pack (1)
|
||||
#endif
|
||||
|
||||
struct S_Descriptor {
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
Bit32u base_0_15 :16;
|
||||
|
@ -239,8 +243,9 @@ struct TSS_32 {
|
|||
Bit32u ldt; /* The local descriptor table */
|
||||
} GCC_ATTRIBUTE(packed);
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma pack()
|
||||
|
||||
#endif
|
||||
class Descriptor
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Reference in a new issue