MSVC: xz: Use _isatty() from <io.h> to implement isatty().

This commit is contained in:
Kelvin Lee 2023-09-05 15:01:10 +03:00 committed by Lasse Collin
parent d14bba8fc2
commit e241051f50
2 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,11 @@
#include <stdarg.h>
#ifdef _MSC_VER
# include <io.h>
# define isatty _isatty
#endif
/// Number of the current file
static unsigned int files_pos = 0;

View File

@ -13,6 +13,11 @@
#include "private.h"
#include <stdarg.h>
#ifdef _MSC_VER
# include <io.h>
# define isatty _isatty
#endif
/// Buffers for uint64_to_str() and uint64_to_nicestr()
static char bufs[4][128];