From 705424224c12be93b3dfcfff284d82e482038103 Mon Sep 17 00:00:00 2001 From: Kjetil Matheussen Date: Thu, 15 Jun 2017 15:23:50 +0200 Subject: [PATCH] Windows: winsock2.h must be included before including windows.h --- systemdeps.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/systemdeps.h b/systemdeps.h index f316aeb..33ea6c3 100644 --- a/systemdeps.h +++ b/systemdeps.h @@ -60,6 +60,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(GNU_WIN32) + #ifdef __MINGW32__ + # include // mingw gives warning if we include windows.h before winsock2.h + #endif + #include #ifdef _MSC_VER /* Microsoft compiler */