diff options
author | Lee Salzman <[email protected]> | 2013-08-19 07:07:19 +0300 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2013-08-19 07:07:19 +0300 |
commit | bc8019aa15a1e9357d9246369e2c3db658f06085 (patch) | |
tree | 36b068bdcbb43d131cc994ebe5eec6abbfe6a0d8 /include | |
parent | 4d7b80152b0bc3c3ca4ee16ee8e62fd9044dd95d (diff) | |
download | enet-bc8019aa15a1e9357d9246369e2c3db658f06085.tar.gz enet-bc8019aa15a1e9357d9246369e2c3db658f06085.zip |
fix some warnings
Diffstat (limited to 'include')
-rw-r--r-- | include/enet/enet.h | 10 | ||||
-rw-r--r-- | include/enet/unix.h | 5 | ||||
-rw-r--r-- | include/enet/win32.h | 5 |
3 files changed, 5 insertions, 15 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h index 8d1c2c0..162b0f8 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -71,13 +71,9 @@ typedef enum _ENetSocketShutdown ENET_SOCKET_SHUTDOWN_READ_WRITE = 2 } ENetSocketShutdown; -enum -{ - ENET_HOST_ANY = 0, /**< specifies the default server host */ - ENET_HOST_BROADCAST = 0xFFFFFFFF, /**< specifies a subnet-wide broadcast */ - - ENET_PORT_ANY = 0 /**< specifies that a port should be automatically chosen */ -}; +#define ENET_HOST_ANY 0 +#define ENET_HOST_BROADCAST 0xFFFFFFFFU +#define ENET_PORT_ANY 0 /** * Portable internet address structure. diff --git a/include/enet/unix.h b/include/enet/unix.h index 3076faa..9683c09 100644 --- a/include/enet/unix.h +++ b/include/enet/unix.h @@ -18,10 +18,7 @@ typedef int ENetSocket; -enum -{ - ENET_SOCKET_NULL = -1 -}; +#define ENET_SOCKET_NULL -1 #define ENET_HOST_TO_NET_16(value) (htons (value)) /**< macro that converts host to net byte-order of a 16-bit value */ #define ENET_HOST_TO_NET_32(value) (htonl (value)) /**< macro that converts host to net byte-order of a 32-bit value */ diff --git a/include/enet/win32.h b/include/enet/win32.h index b7b6816..40fb803 100644 --- a/include/enet/win32.h +++ b/include/enet/win32.h @@ -19,10 +19,7 @@ typedef SOCKET ENetSocket; -enum -{ - ENET_SOCKET_NULL = INVALID_SOCKET -}; +#define ENET_SOCKET_NULL INVALID_SOCKET #define ENET_HOST_TO_NET_16(value) (htons (value)) #define ENET_HOST_TO_NET_32(value) (htonl (value)) |