summaryrefslogtreecommitdiff
path: root/src/doomtype.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/doomtype.h')
-rw-r--r--src/doomtype.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/doomtype.h b/src/doomtype.h
index 5377c8ca..bf0a40e3 100644
--- 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