diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-13 20:30:03 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-13 20:30:03 +0200 |
commit | 32086b1f52a9978db1e8168b56a312e76afcf5ab (patch) | |
tree | de490c1c7d47bcbc6428d622957240679483d6b6 /pc/config.h | |
parent | 6bfbae33e99c401f89a4d650ea7958bbdebd362e (diff) | |
download | egawk-32086b1f52a9978db1e8168b56a312e76afcf5ab.tar.gz egawk-32086b1f52a9978db1e8168b56a312e76afcf5ab.tar.bz2 egawk-32086b1f52a9978db1e8168b56a312e76afcf5ab.zip |
PC fixes for portability and dependencies.
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 */ |