aboutsummaryrefslogtreecommitdiff
path: root/src/xz/message.c
diff options
context:
space:
mode:
authorKelvin Lee <kiyolee@gmail.com>2023-09-05 15:01:10 +0300
committerLasse Collin <lasse.collin@tukaani.org>2023-09-22 20:00:38 +0300
commite241051f50044259d174e8b4633dd9a1c4478408 (patch)
treeee26bee6a01592d662dd616f30d83606adc700ab /src/xz/message.c
parentMSVC: xz: Use _fileno() instead of fileno(). (diff)
downloadxz-e241051f50044259d174e8b4633dd9a1c4478408.tar.xz
MSVC: xz: Use _isatty() from <io.h> to implement isatty().
Diffstat (limited to '')
-rw-r--r--src/xz/message.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xz/message.c b/src/xz/message.c
index a87f864d..056ba5ea 100644
--- a/src/xz/message.c
+++ b/src/xz/message.c
@@ -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;