SDL_net: Move `_WIN32_WINNT` check to top of SDL_net.c

From fc265aeb20ad824ae9f77a9d77f210d231b34e28 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 28 Sep 2023 10:50:43 -0400
Subject: [PATCH] Move `_WIN32_WINNT` check to top of SDL_net.c

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
---
 src/SDL_net.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/SDL_net.c b/src/SDL_net.c
index dae1947..c5ab388 100644
--- a/src/SDL_net.c
+++ b/src/SDL_net.c
@@ -1,15 +1,15 @@
+#ifdef _WIN32_WINNT
+#  if _WIN32_WINNT < 0x0600 // we need APIs that didn't arrive until Windows Vista.
+#    undef _WIN32_WINNT
+#  endif
+#  ifndef _WIN32_WINNT
+#    define _WIN32_WINNT 0x0600
+#  endif
+#endif
+
 #include "SDL3_net/SDL_net.h"
 
 #ifdef __WINDOWS__
-// we need APIs that didn't arrive until Windows Vista.
-#ifdef _WIN32_WINNT
-  #if _WIN32_WINNT < 0x0600
-    #undef _WIN32_WINNT
-  #endif
-#endif
-#ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0600
-#endif
 #define WIN32_LEAN_AND_MEAN 1
 #include <winsock2.h>
 #include <ws2tcpip.h>