aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/enet/protocol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/enet/protocol.h b/include/enet/protocol.h
index f8a27d8..8e7beab 100644
--- a/include/enet/protocol.h
+++ b/include/enet/protocol.h
@@ -57,7 +57,7 @@ typedef enum _ENetProtocolFlag
#ifdef _MSC_VER_
#pragma pack(push, 1)
#define ENET_PACKED
-#elif defined(__GNUC__)
+#elif defined(__GNUC__) || defined(__clang__)
#define ENET_PACKED __attribute__ ((packed))
#else
#define ENET_PACKED