[llvm-commits] CVS: llvm/lib/Support/SystemUtils.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Fri Apr 2 23:33:16 PST 2004


Changes in directory llvm/lib/Support:

SystemUtils.cpp updated: 1.22 -> 1.23

---
Log message:

Add autoconf support for isStandardOutAConsole ().


---
Diffs of the changes:  (+5 -1)

Index: llvm/lib/Support/SystemUtils.cpp
diff -u llvm/lib/Support/SystemUtils.cpp:1.22 llvm/lib/Support/SystemUtils.cpp:1.23
--- llvm/lib/Support/SystemUtils.cpp:1.22	Thu Apr  1 23:04:03 2004
+++ llvm/lib/Support/SystemUtils.cpp	Fri Apr  2 15:26:04 2004
@@ -18,6 +18,7 @@
 #include "Config/fcntl.h"
 #include "Config/sys/wait.h"
 #include "Config/unistd.h"
+#include "Config/config.h"
 #include <algorithm>
 #include <fstream>
 #include <iostream>
@@ -47,8 +48,11 @@
 /// isStandardOutAConsole - Return true if we can tell that the standard output
 /// stream goes to a terminal window or console.
 bool llvm::isStandardOutAConsole() {
-  // FIXME: if we don't have isatty, just return false.
+#if HAVE_ISATTY
   return isatty(1);
+#endif
+  // If we don't have isatty, just return false.
+  return false;
 }
 
 





More information about the llvm-commits mailing list