summaryrefslogtreecommitdiff
path: root/pc/config.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-02-13 20:30:03 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-02-13 20:30:03 +0200
commit32086b1f52a9978db1e8168b56a312e76afcf5ab (patch)
treede490c1c7d47bcbc6428d622957240679483d6b6 /pc/config.h
parent6bfbae33e99c401f89a4d650ea7958bbdebd362e (diff)
downloadgawk-32086b1f52a9978db1e8168b56a312e76afcf5ab.tar.gz
PC fixes for portability and dependencies.
Diffstat (limited to 'pc/config.h')
-rw-r--r--pc/config.h4
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 */