From 068fdbbf32e6fe00228f7da5ffa8cb508dbff0ea Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Thu, 26 Sep 2019 12:44:07 -0400 Subject: [PATCH] Don't declare new symbols for each file that includes mpw-util.h --- platform-independent/c/core/src/mpw-util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform-independent/c/core/src/mpw-util.h b/platform-independent/c/core/src/mpw-util.h index 8d0e0487..3735c4c6 100644 --- a/platform-independent/c/core/src/mpw-util.h +++ b/platform-independent/c/core/src/mpw-util.h @@ -41,10 +41,10 @@ typedef mpw_enum(int, LogLevel) { /** Issues that lead to abortion. */ LogLevelFatal = -2, }; -LogLevel mpw_verbosity; +extern LogLevel mpw_verbosity; /** mpw_log_cli is a sink that writes log messages to the mpw_log_cli_file, which defaults to stderr. */ -FILE *mpw_log_cli_file; +extern FILE *mpw_log_cli_file; void mpw_log_cli(LogLevel level, const char *format, ...); void mpw_vlog_cli(LogLevel level, const char *format, va_list args);