aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--include/enet/enet.h10
-rw-r--r--include/enet/unix.h5
-rw-r--r--include/enet/win32.h5
4 files changed, 6 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index b70a407..ce469e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
-ENet 1.3.9 (August 18, 2013):
+ENet 1.3.9 (August 19, 2013):
* added duplicatePeers option to ENetHost which can limit the number of peers from duplicate IPs
* added enet_socket_get_option() and ENET_SOCKOPT_ERROR
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))