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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-03-31 16:33:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-03-31 16:33:15 +0300
commitb237a1c2eacc5e01f9e50c423ced8b9f4e5cb768 (patch)
treebfdecc850eb9f09e3501512952f53232d451c903
parentdb8e7f9780f9148704a986290b9493e27b350fe4 (diff)
Use int instead of bool
Causes issues when including in some files.
-rw-r--r--intern/clog/CLG_log.h2
-rw-r--r--intern/clog/clog.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/intern/clog/CLG_log.h b/intern/clog/CLG_log.h
index a6c66114a5f..8afa9edd75b 100644
--- a/intern/clog/CLG_log.h
+++ b/intern/clog/CLG_log.h
@@ -144,7 +144,7 @@ void CLG_init(void);
void CLG_exit(void);
void CLG_output_set(void *file_handle);
-void CLG_output_use_basename_set(bool value);
+void CLG_output_use_basename_set(int value);
void CLG_fatal_fn_set(void (*fatal_fn)(void *file_handle));
void CLG_type_filter_include(const char *type_filter, int type_filter_len);
diff --git a/intern/clog/clog.c b/intern/clog/clog.c
index 37dadb69fca..93822f9031d 100644
--- a/intern/clog/clog.c
+++ b/intern/clog/clog.c
@@ -456,9 +456,9 @@ static void CLG_ctx_output_set(CLogContext *ctx, void *file_handle)
#endif
}
-static void CLG_ctx_output_use_basename_set(CLogContext *ctx, bool value)
+static void CLG_ctx_output_use_basename_set(CLogContext *ctx, int value)
{
- ctx->use_basename = value;
+ ctx->use_basename = (bool)value;
}
/** Action on fatal severity. */
@@ -545,7 +545,7 @@ void CLG_output_set(void *file_handle)
CLG_ctx_output_set(g_ctx, file_handle);
}
-void CLG_output_use_basename_set(bool value)
+void CLG_output_use_basename_set(int value)
{
CLG_ctx_output_use_basename_set(g_ctx, value);
}