Browse Source

Move implementation-spefic includes

NX 6 years ago
parent
commit
b9132d84da
1 changed files with 10 additions and 10 deletions
  1. 10 10
      Source/Native/enet.h

+ 10 - 10
Source/Native/enet.h

@@ -58,11 +58,6 @@
 // =======================================================================//
 
 #ifdef _WIN32
-	#ifdef __MINGW32__
-		#include "mingw/inet_ntop.c"
-		#include "mingw/inet_pton.c"
-	#endif
-
 	#if defined(_MSC_VER) && defined(ENET_IMPLEMENTATION)
 		#pragma warning(disable: 4018) /* signed/unsigned mismatch */
 		#pragma warning(disable: 4146) /* unary minus operator applied to unsigned type */
@@ -188,10 +183,6 @@
 extern "C" {
 #endif
 
-	#ifdef ENET_LZ4
-		#include "lz4/lz4.h"
-	#endif
-
 // =======================================================================//
 // !
 // ! Basic stuff
@@ -822,6 +813,15 @@ extern "C" {
 extern "C" {
 #endif
 
+#ifdef ENET_LZ4
+	#include "lz4/lz4.h"
+#endif
+
+#ifdef __MINGW32__
+	#include "mingw/inet_ntop.c"
+	#include "mingw/inet_pton.c"
+#endif
+
 // =======================================================================//
 // !
 // ! Atomics
@@ -5084,4 +5084,4 @@ extern "C" {
 }
 #endif
 #endif
-#endif
+#endif