From 46251c20684621ea5b93b15fb2b61df2d2c8a9ab Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 14 Jul 2021 15:07:11 +0200 Subject: [PATCH] Fix Windows debug builds --- libs/pbd/stacktrace.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/pbd/stacktrace.cc b/libs/pbd/stacktrace.cc index ba8ddbcfa2..29f8074a9c 100644 --- a/libs/pbd/stacktrace.cc +++ b/libs/pbd/stacktrace.cc @@ -74,7 +74,7 @@ PBD::stacktrace (std::ostream& out, int levels, int start) } } -#elif defined (PLATFORM_WINDOWS) +#elif defined PLATFORM_WINDOWS #if !defined CaptureStackBackTrace #define CaptureStackBackTrace RtlCaptureStackBackTrace @@ -98,7 +98,7 @@ PBD::stacktrace (std::ostream& out, int levels, int start) HANDLE process; process = GetCurrentProcess(); - out << "Backtrace thread: " << DEBUG_THREAD_SELF << std::endl; + out << string_compose ("Backtrace thread: %1", DEBUG_THREAD_SELF) << std::endl; SymInitialize (process, NULL, TRUE);