From b4e8d33f1184837705255a19a5e513aa4aad96ab Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 16 Apr 2018 07:38:11 +0200 Subject: Logging: edits to build on macOS --- intern/clog/clog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/clog') 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 /* For 'isatty' to check for color. */ -#if defined(__unix__) +#if defined(__unix__) || defined(__APPLE__) # include #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 } -- cgit v1.2.3