]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/curses.priv.h
ncurses 5.9 - patch 20140426
[ncurses.git] / ncurses / curses.priv.h
index 5f16c995b9581e17be29514952abb82dfc5825bc..4b5fe2f31a8d4b3013572bcd1e064538ef2a2530 100644 (file)
@@ -34,7 +34,7 @@
  ****************************************************************************/
 
 /*
- * $Id: curses.priv.h,v 1.533 2014/04/13 00:16:21 tom Exp $
+ * $Id: curses.priv.h,v 1.535 2014/04/26 18:45:36 juergen Exp $
  *
  *     curses.priv.h
  *
@@ -2350,6 +2350,8 @@ extern NCURSES_EXPORT(void)   _nc_get_screensize(SCREEN *, int *, int *);
 #ifdef __MINGW32__
 #include <nc_mingw.h>
 extern NCURSES_EXPORT_VAR(TERM_DRIVER) _nc_WIN_DRIVER;
+extern NCURSES_EXPORT(int)  _nc_mingw_isatty(int fd);
+extern NCURSES_EXPORT(int)  _nc_mingw_isconsole(int fd);
 #endif
 extern NCURSES_EXPORT_VAR(TERM_DRIVER) _nc_TINFO_DRIVER;
 #endif
@@ -2461,6 +2463,12 @@ extern NCURSES_EXPORT(NCURSES_CONST char *) _nc_unctrl (SCREEN *, chtype);
 
 #endif
 
+#ifndef __MINGW32__
+#  define NC_ISATTY(fd) isatty(fd)
+#else
+#  define NC_ISATTY(fd) _nc_mingw_isatty(fd)
+#endif
+
 #ifdef __cplusplus
 }
 #endif