]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Use is_tty() in message.c.
authorJia Tan <jiat0218@gmail.com>
Thu, 23 Nov 2023 14:13:39 +0000 (22:13 +0800)
committerJia Tan <jiat0218@gmail.com>
Thu, 23 Nov 2023 14:40:27 +0000 (22:40 +0800)
src/xz/message.c

index c2a5d33d038d13ef9ab56c988b1bcdb940a287e4..e3ac6ff6669e317b49b2a35ef62b881ddb0e1be7 100644 (file)
 
 #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