summaryrefslogtreecommitdiffstats
path: root/source/MCLogger.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-10 12:50:23 +0200
committermadmaxoft <github@xoft.cz>2013-08-10 12:50:23 +0200
commit211a8395d4e8f572ac98b753530a1e6e060bf983 (patch)
tree23aab6e91b60148aca36240f60c97e8a00887b81 /source/MCLogger.cpp
parentDisabled coloring for redirected output. (diff)
downloadcuberite-211a8395d4e8f572ac98b753530a1e6e060bf983.tar
cuberite-211a8395d4e8f572ac98b753530a1e6e060bf983.tar.gz
cuberite-211a8395d4e8f572ac98b753530a1e6e060bf983.tar.bz2
cuberite-211a8395d4e8f572ac98b753530a1e6e060bf983.tar.lz
cuberite-211a8395d4e8f572ac98b753530a1e6e060bf983.tar.xz
cuberite-211a8395d4e8f572ac98b753530a1e6e060bf983.tar.zst
cuberite-211a8395d4e8f572ac98b753530a1e6e060bf983.zip
Diffstat (limited to 'source/MCLogger.cpp')
-rw-r--r--source/MCLogger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/MCLogger.cpp b/source/MCLogger.cpp
index ae411302f..99c1533ac 100644
--- a/source/MCLogger.cpp
+++ b/source/MCLogger.cpp
@@ -2,7 +2,6 @@
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include <time.h>
-#include <io.h>
#include "Log.h"
@@ -13,6 +12,8 @@ cMCLogger * cMCLogger::s_MCLogger = NULL;
bool g_ShouldColorOutput = false;
#ifdef _WIN32
+ #include <io.h> // Needed for _isatty(), not available on Linux
+
HANDLE g_Console = GetStdHandle(STD_OUTPUT_HANDLE);
WORD g_DefaultConsoleAttrib = 0x07;
#elif defined (__linux) && !defined(ANDROID_NDK)