Fix compiling on linux

This commit is contained in:
Phillip Stephens 2021-06-19 14:43:23 -07:00
parent ed3714e55c
commit 274ad5ef07
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@
#include <cinttypes> #include <cinttypes>
#include <csignal> #include <csignal>
#include <locale> #include <locale>
#include <optional>
#include "logvisor/logvisor.hpp" #include "logvisor/logvisor.hpp"
#if SENTRY_ENABLED #if SENTRY_ENABLED
@ -822,7 +823,7 @@ struct ConsoleLogger : public ILogger {
if (sourceInfo) if (sourceInfo)
fmt::print(stderr, FMT_STRING(L" {{}}"), sourceInfo); fmt::print(stderr, FMT_STRING(L" {{}}"), sourceInfo);
if (thrName) if (thrName)
fmt::print(stderr, FMT_STRING(L" ({})"), thrName); fmt::print(stderr, FMT_STRING(L" ({})"), *thrName);
std::fputws(L"] ", stderr); std::fputws(L"] ", stderr);
#endif #endif
} }