[Bf-blender-cvs] [b4e8d33f118] master: Logging: edits to build on macOS
Campbell Barton
noreply at git.blender.org
Mon Apr 16 07:39:01 CEST 2018
Commit: b4e8d33f1184837705255a19a5e513aa4aad96ab
Author: Campbell Barton
Date: Mon Apr 16 07:38:11 2018 +0200
Branches: master
https://developer.blender.org/rBb4e8d33f1184837705255a19a5e513aa4aad96ab
Logging: edits to build on macOS
===================================================================
M intern/clog/clog.c
===================================================================
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
}
More information about the Bf-blender-cvs
mailing list