windows interface.

This commit is contained in:
U-WIN-ENP104VVO3U\Vítor Santos Costa
2011-06-06 19:03:20 +01:00
parent d685b8891f
commit a0748c7c10
5 changed files with 19 additions and 13 deletions

View File

@@ -339,12 +339,12 @@ initIO()
streamContext = newHTable(16);
PL_register_blob_type(&stream_blob);
#ifdef __unix__
{ int fd;
{ int fd;
if ( (fd=Sfileno(Sinput)) < 0 || !isatty(fd) ||
(fd=Sfileno(Soutput)) < 0 || !isatty(fd) )
PL_set_prolog_flag("tty_control", PL_BOOL, FALSE);
}
if ( (fd=Sfileno(Sinput)) < 0 || !isatty(fd) ||
(fd=Sfileno(Soutput)) < 0 || !isatty(fd) )
PL_set_prolog_flag("tty_control", PL_BOOL, FALSE);
}
#endif
ResetTty();
#if __YAP_PROLOG__

View File

@@ -5,7 +5,9 @@
#define O_GMP 1
#endif
#ifndef PL_CONSOLE
#define PL_KERNEL 1
#endif
#ifdef __MINGW32__
#define O_XOS 1