diff options
Diffstat (limited to 'pc/config.h')
-rw-r--r-- | pc/config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pc/config.h b/pc/config.h index 4dd797c1..4ec2d711 100644 --- a/pc/config.h +++ b/pc/config.h @@ -518,4 +518,8 @@ #define HAVE_USLEEP 1 #endif +#if defined(__MINGW32__) || defined(_MSC_VER) +# define ISATTY(fd) (isatty(fd) && lseek(fd,SEEK_CUR,0) == -1) +#endif + /* #define NO_LINT 1 */ |