mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
MSVC: xz: Use _isatty() from <io.h> to implement isatty().
This commit is contained in:
parent
d14bba8fc2
commit
e241051f50
2 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue