mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
_MSC_VER fix
This commit is contained in:
parent
d45b44f2b5
commit
9d1d09c1e5
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ typedef enum _ENetProtocolFlag
|
||||||
ENET_PROTOCOL_HEADER_SESSION_SHIFT = 12
|
ENET_PROTOCOL_HEADER_SESSION_SHIFT = 12
|
||||||
} ENetProtocolFlag;
|
} ENetProtocolFlag;
|
||||||
|
|
||||||
#ifdef _MSC_VER_
|
#ifdef _MSC_VER
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
#define ENET_PACKED
|
#define ENET_PACKED
|
||||||
#elif defined(__GNUC__) || defined(__clang__)
|
#elif defined(__GNUC__) || defined(__clang__)
|
||||||
|
@ -191,7 +191,7 @@ typedef union _ENetProtocol
|
||||||
ENetProtocolThrottleConfigure throttleConfigure;
|
ENetProtocolThrottleConfigure throttleConfigure;
|
||||||
} ENET_PACKED ENetProtocol;
|
} ENET_PACKED ENetProtocol;
|
||||||
|
|
||||||
#ifdef _MSC_VER_
|
#ifdef _MSC_VER
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue