mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
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
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user