Include winsock2.h before windows.h, as required by MSYS2/MinGW-w64.

This commit is contained in:
Frederik Seiffert 2020-05-23 15:36:21 +02:00
parent 2be366e05d
commit a0fe037077
5 changed files with 9 additions and 16 deletions

View file

@ -22,14 +22,8 @@
Boston, MA 02111 USA.
*/
#if defined(__WIN64__)
#include <winsock2.h>
#include <windows.h>
#else
/* mingw32 wants winsock2.h before windows.h */
#include <windows.h>
#include <winsock2.h>
#endif
#include "common.h"
#define EXPOSE_NSFileHandle_IVARS 1