shithub: choc

Download patch

ref: b3c22d76f396c979fbd9751e1fff403dfc9bea0d
parent: 1821d8bdd335307de1455ad4342c58ad4841b123
parent: 597d49890ae3ec027b0a536ea708adf180202072
author: Simon Howard <[email protected]>
date: Sat Aug 29 10:23:20 EDT 2015

Merge pull request #602 from jmtd/clang-fixups

Adjust PACKEDATTR for Clang

--- a/src/doomtype.h
+++ b/src/doomtype.h
@@ -51,7 +51,13 @@
 //
 
 #ifdef __GNUC__
+
+#ifdef __clang__
+#define PACKEDATTR __attribute__((packed))
+#else
 #define PACKEDATTR __attribute__((packed,gcc_struct))
+#endif
+
 #else
 #define PACKEDATTR
 #endif