From e4903f8b70057e64e07ac1e6eaab42f1153df8ff Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Fri, 29 Apr 2016 21:17:58 +0100 Subject: Windows: Include winsock2.h before windows.h winsock2.h is incompatible with winsock.h (included by windows.h) and must be included first. For reference see https://msdn.microsoft.com/en-us/library/windows/desktop/ms737629%28v=vs.85%29.aspx --- src/nvim/os/win_defs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/nvim/os/win_defs.h b/src/nvim/os/win_defs.h index 242d355f77..55894e4d12 100644 --- a/src/nvim/os/win_defs.h +++ b/src/nvim/os/win_defs.h @@ -1,6 +1,9 @@ #ifndef NVIM_OS_WIN_DEFS_H #define NVIM_OS_WIN_DEFS_H +// winsock2.h must be first to avoid incompatibilities +// with winsock.h (included by windows.h) +#include #include #include #include -- cgit