On Dec 22, 2007, at 11:08 AM, Keith Bauer wrote: >> And how will you solve it in a portable manner? > > #if !defined(_WIN32) // ideally a more robust configure-based test > if (isatty(STDOUT_FILENO))
A portable way to do this is to use llvm::sys::Process::StandardOutIsDisplayed(), which is implemented in terms of isatty on unix and does the right thing on win32. -Chris _______________________________________________ cfe-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
