From c97eef238e7823beedf8d67d99cae7b3f7ff6204 Mon Sep 17 00:00:00 2001
From: Ronald Kinard <furyhunter600@gmail.com>
Date: Sun, 31 Aug 2014 23:23:04 +0000
Subject: [PATCH] Use gcc_struct on ATTRPACK too

---
 src/doomtype.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/doomtype.h b/src/doomtype.h
index a365e3c56c..6bc5635277 100644
--- a/src/doomtype.h
+++ b/src/doomtype.h
@@ -307,7 +307,11 @@ typedef UINT32 tic_t;
 #define FUNCTARGET(X)  __attribute__ ((__target__ (X)))
 #endif
 #endif
+#if defined (__MINGW32__) && ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+#define ATTRPACK __attribute__((packed, gcc_struct))
+#else
 #define ATTRPACK __attribute__((packed))
+#endif
 #define ATTRUNUSED __attribute__((unused))
 #ifdef _XBOX
 #define FILESTAMP I_OutputMsg("%s:%d\n",__FILE__,__LINE__);
-- 
GitLab