From 45d941d62e2accea92f5b5183afe760e69a618ac Mon Sep 17 00:00:00 2001
From: Jannik Vogel <email@jannikvogel.de>
Date: Sat, 3 Dec 2016 21:08:02 +0100
Subject: Support mingw cross-compile

---
 src/core/gdbstub/gdbstub.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/core/gdbstub/gdbstub.cpp')

diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index aea43e92ba..aa849ab4b2 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -15,7 +15,8 @@
 #include <fcntl.h>
 
 #ifdef _WIN32
-#include <WinSock2.h>
+#include <winsock2.h>
+// winsock2.h needs to be included first to prevent winsock.h being included by other includes
 #include <common/x64/abi.h>
 #include <io.h>
 #include <iphlpapi.h>
-- 
cgit v1.2.3-70-g09d2