Fixes for datatype size on amd64.
[crack-attack.git] / enet / include / enet / types.h
blob0b1e49221012a834838e7471921cf518ac6c4b28
1 /**
2 @file types.h
3 @brief type definitions for ENet
4 */
5 #ifndef __ENET_TYPES_H__
6 #define __ENET_TYPES_H__
8 #ifdef WIN32
9 typedef unsigned char enet_uint8; /**< unsigned 8-bit type */
10 typedef unsigned short enet_uint16; /**< unsigned 16-bit type */
11 typedef unsigned int enet_uint32; /**< unsigned 32-bit type */
12 #else
13 #include <inttypes.h>
14 typedef uint8_t enet_uint8; /**< unsigned 8-bit type */
15 typedef uint16_t enet_uint16; /**< unsigned 16-bit type */
16 typedef uint32_t enet_uint32; /**< unsigned 32-bit type */
17 #endif
19 #endif /* __ENET_TYPES_H__ */