windows interface.
This commit is contained in:
@@ -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__
|
||||
|
@@ -5,7 +5,9 @@
|
||||
#define O_GMP 1
|
||||
#endif
|
||||
|
||||
#ifndef PL_CONSOLE
|
||||
#define PL_KERNEL 1
|
||||
#endif
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#define O_XOS 1
|
||||
|
Reference in New Issue
Block a user