Browse Source

Bump the version

NX 6 years ago
parent
commit
f4e8f1a6c4
2 changed files with 10 additions and 10 deletions
  1. 1 1
      Source/Managed/ENet.cs
  2. 9 9
      Source/Native/enet.h

+ 1 - 1
Source/Managed/ENet.cs

@@ -838,7 +838,7 @@ namespace ENet {
 		public const uint timeoutLimit = 32;
 		public const uint timeoutMinimum = 5000;
 		public const uint timeoutMaximum = 30000;
-		public const uint version = (2 << 16) | (2 << 8) | (3);
+		public const uint version = (2 << 16) | (2 << 8) | (4);
 
 		public static bool Initialize() {
 			return Native.enet_initialize() == 0;

+ 9 - 9
Source/Native/enet.h

@@ -29,13 +29,9 @@
 #include <stdint.h>
 #include <time.h>
 
-#ifdef ENET_LZ4
-	#include "lz4/lz4.h"
-#endif
-
 #define ENET_VERSION_MAJOR 2
 #define ENET_VERSION_MINOR 2
-#define ENET_VERSION_PATCH 3
+#define ENET_VERSION_PATCH 4
 #define ENET_VERSION_CREATE(major, minor, patch) (((major) << 16) | ((minor) << 8) | (patch))
 #define ENET_VERSION_GET_MAJOR(version) (((version) >> 16) & 0xFF)
 #define ENET_VERSION_GET_MINOR(version) (((version) >> 8) & 0xFF)
@@ -192,6 +188,10 @@
 extern "C" {
 #endif
 
+	#ifdef ENET_LZ4
+		#include "lz4/lz4.h"
+	#endif
+
 // =======================================================================//
 // !
 // ! Basic stuff
@@ -423,7 +423,7 @@ extern "C" {
 
 // =======================================================================//
 // !
-// ! General ENet structs/enums
+// ! General structs/enums
 // !
 // =======================================================================//
 
@@ -4326,7 +4326,7 @@ extern "C" {
 
 // =======================================================================//
 // !
-// ! Platform Specific (Unix)
+// ! Platform-specific (Unix)
 // !
 // =======================================================================//
 
@@ -4718,7 +4718,7 @@ extern "C" {
 
 // =======================================================================//
 // !
-// ! Platform Specific (Win)
+// ! Platform-specific (Windows)
 // !
 // =======================================================================//
 
@@ -5084,4 +5084,4 @@ extern "C" {
 }
 #endif
 #endif
-#endif
+#endif