Explorar o código

add clang check

lsalzman %!s(int64=12) %!d(string=hai) anos
pai
achega
03c0de167c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/enet/protocol.h

+ 1 - 1
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