From 1709134b41c4a6daf7e38ebe032d019e43cdb319 Mon Sep 17 00:00:00 2001 From: dashodanger Date: Tue, 28 May 2024 10:23:24 -0600 Subject: [PATCH] Try to fix atty stuff --- source_files/filename_formatter/lex.yy.c | 2 +- source_files/filename_formatter/lex.yy.h | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/source_files/filename_formatter/lex.yy.c b/source_files/filename_formatter/lex.yy.c index 47e0acf20f..af1661f899 100644 --- a/source_files/filename_formatter/lex.yy.c +++ b/source_files/filename_formatter/lex.yy.c @@ -1415,7 +1415,7 @@ static void yy_init_buffer(YY_BUFFER_STATE b, FILE *file) b->yy_bs_column = 0; } - b->yy_is_interactive = file ? (isatty(fileno(file)) > 0) : 0; + b->yy_is_interactive = 0; errno = oerrno; } diff --git a/source_files/filename_formatter/lex.yy.h b/source_files/filename_formatter/lex.yy.h index ceb45b25f3..a7d83d6095 100644 --- a/source_files/filename_formatter/lex.yy.h +++ b/source_files/filename_formatter/lex.yy.h @@ -213,13 +213,6 @@ extern char *yytext; #endif -/*windows compatibility case*/ -#ifdef _WIN32 -#include -#define isatty _isatty -#define fileno _fileno -#endif - #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif