diff options
author | Kelvin Lee <kiyolee@gmail.com> | 2023-09-05 15:01:10 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-09-22 20:00:38 +0300 |
commit | e241051f50044259d174e8b4633dd9a1c4478408 (patch) | |
tree | ee26bee6a01592d662dd616f30d83606adc700ab /src/xz/util.c | |
parent | MSVC: xz: Use _fileno() instead of fileno(). (diff) | |
download | xz-e241051f50044259d174e8b4633dd9a1c4478408.tar.xz |
MSVC: xz: Use _isatty() from <io.h> to implement isatty().
Diffstat (limited to '')
-rw-r--r-- | src/xz/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xz/util.c b/src/xz/util.c index 6ab4c2d7..df6fd709 100644 --- a/src/xz/util.c +++ b/src/xz/util.c @@ -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]; |