Windows: winsock2.h must be included before including windows.h

This commit is contained in:
Kjetil Matheussen 2017-06-15 15:23:50 +02:00 committed by Filipe Coelho
parent 21273bc5e2
commit 705424224c
1 changed files with 4 additions and 0 deletions

View File

@ -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 */