Skip to content

Commit

Permalink
Try to fix atty stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed May 28, 2024
1 parent 05219e1 commit 1709134
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion source_files/filename_formatter/lex.yy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
7 changes: 0 additions & 7 deletions source_files/filename_formatter/lex.yy.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,6 @@ extern char *yytext;

#endif

/*windows compatibility case*/
#ifdef _WIN32
#include <io.h>
#define isatty _isatty
#define fileno _fileno
#endif

#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
Expand Down

0 comments on commit 1709134

Please sign in to comment.