summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Greffrath2015-08-24 19:14:05 +0200
committerMike Swanson2015-08-24 14:37:33 -0700
commit87db726b9a9ae61caf2ff167450625ce8f4076c3 (patch)
treeccaa6e9746a77db31d91ddd1b3585a5962bef29d
parent525a7b0d071b146221498a13275c5db206a437e3 (diff)
downloadchocolate-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
-rw-r--r--src/doomtype.h2
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