mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
MSVC: Don't #include <unistd.h>.
This commit is contained in:
parent
adef92f235
commit
cfd1054b9b
4 changed files with 14 additions and 4 deletions
|
@ -29,7 +29,9 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#ifndef _MSC_VER
|
||||||
|
# include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __VMS
|
#ifdef __VMS
|
||||||
# include <unixlib.h>
|
# include <unixlib.h>
|
||||||
|
|
|
@ -34,7 +34,9 @@
|
||||||
#if defined __GETOPT_PREFIX && !defined __need_getopt
|
#if defined __GETOPT_PREFIX && !defined __need_getopt
|
||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
|
# ifndef _MSC_VER
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
# endif
|
||||||
# undef __need_getopt
|
# undef __need_getopt
|
||||||
# undef getopt
|
# undef getopt
|
||||||
# undef getopt_long
|
# undef getopt_long
|
||||||
|
|
|
@ -21,7 +21,10 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
# include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "tuklib_gettext.h"
|
#include "tuklib_gettext.h"
|
||||||
#include "tuklib_progname.h"
|
#include "tuklib_progname.h"
|
||||||
|
|
|
@ -16,7 +16,10 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
# include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "getopt.h"
|
#include "getopt.h"
|
||||||
#include "tuklib_progname.h"
|
#include "tuklib_progname.h"
|
||||||
|
|
Loading…
Reference in a new issue