ref: 597d49890ae3ec027b0a536ea708adf180202072
parent: 1821d8bdd335307de1455ad4342c58ad4841b123
author: Jonathan Dowland <jon+github@alcopop.org>
date: Sat Aug 29 06:16:33 EDT 2015
Adjust PACKEDATTR for Clang Clang defines __GNUC__ but does not support the gnustruct packing attribute, so add some extra #ifdef checks to catch 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