MSVC: Don't #include <unistd.h>.

This commit is contained in:
Kelvin Lee 2023-09-05 14:37:50 +03:00 committed by Lasse Collin
parent adef92f235
commit cfd1054b9b
4 changed files with 14 additions and 4 deletions

View File

@ -29,7 +29,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef _MSC_VER
# include <unistd.h>
#endif
#ifdef __VMS
# include <unixlib.h>

View File

@ -34,7 +34,9 @@
#if defined __GETOPT_PREFIX && !defined __need_getopt
# include <stdlib.h>
# include <stdio.h>
# ifndef _MSC_VER
# include <unistd.h>
# endif
# undef __need_getopt
# undef getopt
# undef getopt_long

View File

@ -21,7 +21,10 @@
#include <signal.h>
#include <locale.h>
#include <stdio.h>
#ifndef _MSC_VER
# include <unistd.h>
#endif
#include "tuklib_gettext.h"
#include "tuklib_progname.h"

View File

@ -16,7 +16,10 @@
#include <stdarg.h>
#include <errno.h>
#include <stdio.h>
#ifndef _MSC_VER
# include <unistd.h>
#endif
#include "getopt.h"
#include "tuklib_progname.h"