forked from bartvdbraak/blender
Fix building w/ FreeBSD
fileno could be a macro which can't take a void pointer.
This commit is contained in:
parent
36389444b0
commit
a3085190f8
@ -470,7 +470,7 @@ void CLG_logf(
|
||||
static void CLG_ctx_output_set(CLogContext *ctx, void *file_handle)
|
||||
{
|
||||
ctx->output_file = file_handle;
|
||||
ctx->output = fileno(file_handle);
|
||||
ctx->output = fileno(ctx->output_file);
|
||||
#if defined(__unix__) || defined(__APPLE__)
|
||||
ctx->use_color = isatty(ctx->output);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user