aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-05-02 20:45:21 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-05-02 20:45:21 -0400
commit490804ed33a5da70ba14bc54bceea5decb62874a (patch)
tree2e2785ee49e779b9680e38f65831465c61cf8909
parentd542de4a76dd9e600ebcf1405efdc9d3090ad9a8 (diff)
parente4903f8b70057e64e07ac1e6eaab42f1153df8ff (diff)
downloadrneovim-490804ed33a5da70ba14bc54bceea5decb62874a.tar.gz
rneovim-490804ed33a5da70ba14bc54bceea5decb62874a.tar.bz2
rneovim-490804ed33a5da70ba14bc54bceea5decb62874a.zip
Merge pull request #4680 from equalsraf/tb-windows-winsock2
Windows: Include winsock2.h before windows.h
-rw-r--r--src/nvim/os/win_defs.h3
1 files changed, 3 insertions, 0 deletions
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 <winsock2.h>
#include <windows.h>
#include <sys/stat.h>
#include <io.h>