build/msvc: Move include into unix_defs.h

This commit is contained in:
b-r-o-c-k
2018-02-28 19:14:27 -06:00
parent d99f8feea3
commit f04b53aa24
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,6 @@
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>

View File

@@ -1,9 +1,10 @@
#ifndef NVIM_OS_UNIX_DEFS_H
#define NVIM_OS_UNIX_DEFS_H
// Windows doesn't have unistd.h, so we include it here to avoid numerous
// instances of `#ifdef WIN32'.
// Windows doesn't have the following headers,
// so we include them here to avoid numerous instances of `#ifdef WIN32'.
#include <unistd.h>
#include <sys/param.h>
// POSIX.1-2008 says that NAME_MAX should be in here
#include <limits.h>