aboutsummaryrefslogtreecommitdiff
path: root/src/xz/message.c
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-11-23 22:13:39 +0800
committerJia Tan <jiat0218@gmail.com>2023-11-23 22:40:27 +0800
commit2ab2e4b5a542eab93902985ce4e642719a8b7a4e (patch)
tree9115e482f32280e6bd1f6bb9a401c420987acfea /src/xz/message.c
parentxz: Create separate is_tty() function. (diff)
downloadxz-2ab2e4b5a542eab93902985ce4e642719a8b7a4e.tar.xz
xz: Use is_tty() in message.c.
Diffstat (limited to 'src/xz/message.c')
-rw-r--r--src/xz/message.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/xz/message.c b/src/xz/message.c
index c2a5d33d..e3ac6ff6 100644
--- a/src/xz/message.c
+++ b/src/xz/message.c
@@ -15,11 +15,6 @@
#include <stdarg.h>
-#ifdef _MSC_VER
-# include <io.h>
-# define isatty _isatty
-#endif
-
/// Number of the current file
static unsigned int files_pos = 0;
@@ -125,7 +120,7 @@ message_init(void)
// exception, even if --verbose was not used, user can send SIGALRM
// to make us print progress information once without automatic
// updating.
- progress_automatic = isatty(STDERR_FILENO);
+ progress_automatic = is_tty(STDERR_FILENO);
// Commented out because COLUMNS is rarely exported to environment.
// Most users have at least 80 columns anyway, let's think something