Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-04-16 08:38:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-16 08:38:11 +0300
commitb4e8d33f1184837705255a19a5e513aa4aad96ab (patch)
tree8ec394bdb63122620ed99e24c3db57b09acd2766 /intern
parent80f7249d09a76b7e045525fa8f78c7d660a8749d (diff)
Logging: edits to build on macOS
Diffstat (limited to 'intern')
-rw-r--r--intern/clog/clog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/clog/clog.c b/intern/clog/clog.c
index 812915e6f95..dc0229e0748 100644
--- a/intern/clog/clog.c
+++ b/intern/clog/clog.c
@@ -29,7 +29,7 @@
#include <assert.h>
/* For 'isatty' to check for color. */
-#if defined(__unix__)
+#if defined(__unix__) || defined(__APPLE__)
# include <unistd.h>
#endif
@@ -454,7 +454,7 @@ static void CLG_ctx_output_set(CLogContext *ctx, void *file_handle)
{
ctx->output_file = file_handle;
ctx->output = fileno(file_handle);
-#if defined(__unix__)
+#if defined(__unix__) || defined(__APPLE__)
ctx->use_color = isatty(ctx->output);
#endif
}