summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2018-10-15 18:03:08 +0200
committerpeterbell10 <peterbell10@live.co.uk>2018-10-15 18:03:08 +0200
commit2010a2b700b268bcf12acb3d842d86efcd396173 (patch)
tree85c3f7caa9094c5ff61e26f77a599c901eadda7b
parentAdd a formatting function for Vector3 (#4282) (diff)
downloadcuberite-2010a2b700b268bcf12acb3d842d86efcd396173.tar
cuberite-2010a2b700b268bcf12acb3d842d86efcd396173.tar.gz
cuberite-2010a2b700b268bcf12acb3d842d86efcd396173.tar.bz2
cuberite-2010a2b700b268bcf12acb3d842d86efcd396173.tar.lz
cuberite-2010a2b700b268bcf12acb3d842d86efcd396173.tar.xz
cuberite-2010a2b700b268bcf12acb3d842d86efcd396173.tar.zst
cuberite-2010a2b700b268bcf12acb3d842d86efcd396173.zip
Diffstat (limited to '')
-rw-r--r--src/LoggerListeners.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/LoggerListeners.cpp b/src/LoggerListeners.cpp
index b49710250..0fed9e69f 100644
--- a/src/LoggerListeners.cpp
+++ b/src/LoggerListeners.cpp
@@ -9,7 +9,7 @@
#endif
-#if defined(_WIN32) || defined (__linux)
+#if defined(_WIN32) || defined (__linux) || defined (__APPLE__)
class cColouredConsoleListener
: public cLogger::cListener
{
@@ -101,11 +101,11 @@
-#elif defined (__linux)
+#elif defined (__linux) || defined (__APPLE__)
- class cLinuxConsoleListener
+ class cANSIConsoleListener
: public cColouredConsoleListener
{
public:
@@ -228,11 +228,11 @@ std::unique_ptr<cLogger::cListener> MakeConsoleListener(bool a_IsService)
{
return cpp14::make_unique<cVanillaCPPConsoleListener>();
}
- #elif defined (__linux) && !defined(ANDROID)
+ #elif (defined (__linux) && !defined(ANDROID)) || defined (__APPLE__)
// TODO: lookup terminal in terminfo
if (isatty(fileno(stdout)))
{
- return cpp14::make_unique<cLinuxConsoleListener>();
+ return cpp14::make_unique<cANSIConsoleListener>();
}
else
{