summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKjetil Matheussen <k.s.matheussen@notam02.no>2017-06-15 15:23:50 +0200
committerKjetil Matheussen <k.s.matheussen@notam02.no>2017-06-15 15:23:50 +0200
commitb4bdb9fe3575bb617b0cbcda0fde5cdd358a3921 (patch)
treef3a3ee56fc6e2f37c24cc3c4d07c78cfb471384a /common
parentf3a6b3e44aa8c7592f150d445773db7f056c3c2d (diff)
downloadjack2-b4bdb9fe3575bb617b0cbcda0fde5cdd358a3921.tar.gz
Windows: winsock2.h must be included before including windows.h
Diffstat (limited to 'common')
-rw-r--r--common/jack/systemdeps.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/jack/systemdeps.h b/common/jack/systemdeps.h
index f316aeb7..33ea6c38 100644
--- a/common/jack/systemdeps.h
+++ b/common/jack/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 <winsock2.h> // mingw gives warning if we include windows.h before winsock2.h
+ #endif
+
#include <windows.h>
#ifdef _MSC_VER /* Microsoft compiler */