add clang check

This commit is contained in:
lsalzman 2013-04-03 10:30:41 +03:00
parent 714f40319a
commit 03c0de167c

View file

@ -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