From 87db726b9a9ae61caf2ff167450625ce8f4076c3 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 24 Aug 2015 19:14:05 +0200 Subject: 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 --- src/doomtype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3