Skip to content
Snippets Groups Projects
Commit 5ade5015 authored by Brian Gaeke's avatar Brian Gaeke
Browse files

Add autoconf support for isStandardOutAConsole ().

llvm-svn: 12638
parent 0d372ee6
No related branches found
No related tags found
No related merge requests found
......@@ -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 @@ bool llvm::isExecutableFile(const std::string &ExeFileName) {
/// 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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment