Explorar el Código

add clang check

lsalzman hace 12 años
padre
commit
03c0de167c
Se han modificado 1 ficheros con 1 adiciones y 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