Windows: winsock2.h must be included before including windows.h
This commit is contained in:
parent
21273bc5e2
commit
705424224c
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue