diff options
author | Fabian Greffrath | 2015-08-24 19:14:05 +0200 |
---|---|---|
committer | Mike Swanson | 2015-08-24 14:37:33 -0700 |
commit | 87db726b9a9ae61caf2ff167450625ce8f4076c3 (patch) | |
tree | ccaa6e9746a77db31d91ddd1b3585a5962bef29d /src | |
parent | 525a7b0d071b146221498a13275c5db206a437e3 (diff) | |
download | chocolate-doom-87db726b9a9ae61caf2ff167450625ce8f4076c3.tar.gz chocolate-doom-87db726b9a9ae61caf2ff167450625ce8f4076c3.tar.bz2 chocolate-doom-87db726b9a9ae61caf2ff167450625ce8f4076c3.zip |
Apply gcc_struct tag to packed structs
GCC fails to properly pack structs although they are tagged with
__attribute__((__packed__)) if called with -mms-bitfields which has
become the default on Windows at some point:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
Diffstat (limited to 'src')
-rw-r--r-- | src/doomtype.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doomtype.h b/src/doomtype.h index 10820c12..5377c8ca 100644 --- a/src/doomtype.h +++ b/src/doomtype.h @@ -51,7 +51,7 @@ // #ifdef __GNUC__ -#define PACKEDATTR __attribute__((packed)) +#define PACKEDATTR __attribute__((packed,gcc_struct)) #else #define PACKEDATTR #endif |