From 452fd245fbcd4d436431a6ee32e3ac3df2a559fc Mon Sep 17 00:00:00 2001 From: Jens Alfke Date: Wed, 11 Dec 2024 09:35:11 -0800 Subject: [PATCH] Attempt to fix MSVC link error w/ kC4Cpp_DefaultLog --- LiteCore/Support/Logging.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LiteCore/Support/Logging.hh b/LiteCore/Support/Logging.hh index b46552f1c..1c151a3f6 100644 --- a/LiteCore/Support/Logging.hh +++ b/LiteCore/Support/Logging.hh @@ -167,8 +167,10 @@ namespace litecore { static std::vector sInternedNames; }; - extern "C" CBL_CORE_API LogDomain kC4Cpp_DefaultLog; - extern LogDomain BlobLog, DBLog, QueryLog, SyncLog, &ActorLog; + extern "C" { + CBL_CORE_API extern LogDomain kC4Cpp_DefaultLog; + } + extern LogDomain BlobLog, DBLog, QueryLog, SyncLog, &ActorLog; #define LogToAt(DOMAIN, LEVEL, FMT, ...) \