summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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
{