Skip to content

Commit

Permalink
xz: Use is_tty() in message.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaT75 committed Nov 23, 2023
1 parent 584e3a2 commit 2ab2e4b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/xz/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2ab2e4b

Please sign in to comment.