aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-04-01 11:52:37 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-04-01 11:52:37 +0300
commit6aed27e0a553cb31800bbaeee1bf8e96a98abb12 (patch)
tree6da50e73f4ef581b3e66dbcec614d39a3dbf23db /awk.h
parentb1746329b7749a8f760bab04c12e5127a23e46ed (diff)
downloadegawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.tar.gz
egawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.tar.bz2
egawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.zip
Change ISATTY macro to os_isatty function.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/awk.h b/awk.h
index d5a3735e..d781ff65 100644
--- a/awk.h
+++ b/awk.h
@@ -163,11 +163,6 @@ typedef int off_t;
#define O_BINARY 0
#endif
-/* Windows needs a separate definition, see pc/config.h. */
-#ifndef ISATTY
-# define ISATTY(fd) isatty(fd)
-#endif
-
#ifndef HAVE_VPRINTF
#error "you lose: you need a system with vfprintf"
#endif /* HAVE_VPRINTF */
@@ -1279,6 +1274,7 @@ extern char *gawk_name(const char *filespec);
extern void os_arg_fixup(int *argcp, char ***argvp);
extern int os_devopen(const char *name, int flag);
extern void os_close_on_exec(int fd, const char *name, const char *what, const char *dir);
+extern int os_isatty(int fd);
extern int os_isdir(int fd);
extern int os_is_setuid(void);
extern int os_setbinmode(int fd, int mode);