]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added isatty() for MPW.
authorGuido van Rossum <guido@python.org>
Thu, 4 Apr 1991 10:47:59 +0000 (10:47 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 4 Apr 1991 10:47:59 +0000 (10:47 +0000)
Python/pythonmain.c

index aee8664b30602734bfe7d4cd0cf79359685ba8be..6602e2b3d2939346361c1f08ae4ab223a3c1c178 100644 (file)
@@ -425,6 +425,16 @@ isatty(fd)
        return fd == fileno(stdin);
 }
 
+#ifdef macintosh
+/* same */
+int
+isatty(fd)
+       int fd;
+{
+       return fd == fileno(stdin);
+}
+#endif
+
 #endif
 
 /*     XXX WISH LIST