shithub: choc

Download patch

ref: 125acd0ef3c0c7a4b9db6d82f302d9d8bbd17d42
parent: d9738a5372f57076cc0bce79855f2974beee1c08
parent: 9eab7159e57ac633387066c1d239e651a3c45f4c
author: Fabian Greffrath <fabian@greffrath.com>
date: Mon Oct 26 03:28:26 EDT 2015

Merge pull request #629 from rrebello/fix-gcc-struct-warn

Fix "`gcc_struct' attribute directive ignored" warnings

Looks good, thanks!

--- a/src/doomtype.h
+++ b/src/doomtype.h
@@ -52,10 +52,10 @@
 
 #ifdef __GNUC__
 
-#ifdef __clang__
-#define PACKEDATTR __attribute__((packed))
-#else
+#if defined(_WIN32) && !defined(__clang__)
 #define PACKEDATTR __attribute__((packed,gcc_struct))
+#else
+#define PACKEDATTR __attribute__((packed))
 #endif
 
 #else