Fix compilation with non-MSCV compilers, e.g. MinGW

This commit is contained in:
Fabian Greffrath 2016-08-19 21:29:36 +02:00
parent 70a0d74de2
commit fa061a1d64
4 changed files with 8 additions and 8 deletions

View File

@ -2221,7 +2221,7 @@ typedef unsigned long dword_t;
typedef long long_t;
typedef unsigned char ubyte_t;
#ifdef _MSC_VER
#ifdef _WIN32
#pragma pack(push, 1)
#endif
@ -2249,7 +2249,7 @@ typedef struct tagBITMAPINFOHEADER
dword_t biClrImportant;
} __attribute__ ((packed)) BITMAPINFOHEADER;
#ifdef _MSC_VER
#ifdef _WIN32
#pragma pack(pop)
#endif

View File

@ -69,7 +69,7 @@ typedef struct
int speed;
} anim_t;
#ifdef _MSC_VER
#ifdef _WIN32
#pragma pack(push, 1)
#endif
@ -84,7 +84,7 @@ typedef struct
int speed;
} __attribute__ ((packed)) animdef_t; //jff 3/23/98 pack to read from memory
#ifdef _MSC_VER
#ifdef _WIN32
#pragma pack(pop)
#endif

View File

@ -514,7 +514,7 @@ typedef enum
// switch animation structure type
#ifdef _MSC_VER
#ifdef _WIN32
#pragma pack(push, 1)
#endif
@ -525,7 +525,7 @@ typedef struct
short episode;
} __attribute__ ((packed)) switchlist_t; //jff 3/23/98 pack to read from memory
#ifdef _MSC_VER
#ifdef _WIN32
#pragma pack(pop)
#endif

View File

@ -34,7 +34,7 @@
//
// haleyjd 01/21/05: these structs must be packed
#ifdef _MSC_VER
#ifdef _WIN32
#pragma pack(push, 1)
#endif
@ -52,7 +52,7 @@ typedef struct
char name[8];
} filelump_t;
#ifdef _MSC_VER
#ifdef _WIN32
#pragma pack(pop)
#endif