summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2020-06-02 16:44:22 -0400
committerAndrey Lihatskiy <alihatskiy@productengine.com>2020-06-02 23:58:04 +0300
commit0b61150e698537a7e42a4cdae02496da500399d9 (patch)
tree4010f3642184b7a92aeb243b8b2fb486c56dcaf8 /indra/llcommon
parent13b78a0c5a788c617866e3530c65dae616e6520f (diff)
SL-13361: Enable color processing on Windows 10 debug console.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llerror.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/llcommon/llerror.cpp b/indra/llcommon/llerror.cpp
index b46f49ba34..0a83c4a3d7 100644
--- a/indra/llcommon/llerror.cpp
+++ b/indra/llcommon/llerror.cpp
@@ -39,6 +39,8 @@
#if !LL_WINDOWS
# include <syslog.h>
# include <unistd.h>
+#else
+# include <io.h>
#endif // !LL_WINDOWS
#include <vector>
#include "string.h"
@@ -231,14 +233,11 @@ namespace {
bool checkANSI(void)
{
-#if LL_LINUX || LL_DARWIN
// Check whether it's okay to use ANSI; if stderr is
// a tty then we assume yes. Can be turned off with
// the LL_NO_ANSI_COLOR env var.
return (0 != isatty(2)) &&
(NULL == getenv("LL_NO_ANSI_COLOR"));
-#endif // LL_LINUX
- return FALSE; // works in a cygwin shell... ;)
}
};