Merge pull request #4680 from equalsraf/tb-windows-winsock2

Windows: Include winsock2.h before windows.h
This commit is contained in:
Justin M. Keyes 2016-05-02 20:45:21 -04:00
commit 490804ed33

View File

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