From c6244798139e1fb597b395baeb834ca3212bbe25 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Thu, 12 Sep 2024 22:34:47 +0300 Subject: [PATCH] Another fix attempt for #177 --- include/boost/stacktrace/stacktrace.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/stacktrace/stacktrace.hpp b/include/boost/stacktrace/stacktrace.hpp index 5592eba..f9d6ada 100644 --- a/include/boost/stacktrace/stacktrace.hpp +++ b/include/boost/stacktrace/stacktrace.hpp @@ -37,9 +37,9 @@ extern "C" { -//#if defined(BOOST_STACKTRACE_LINK) && defined(BOOST_STACKTRACE_DYN_LINK) +#if defined(BOOST_STACKTRACE_LINK) && defined(BOOST_STACKTRACE_DYN_LINK) && !defined(BOOST_STACKTRACE_INTERNAL_BUILD_LIBS) BOOST_SYMBOL_EXPORT -//#endif +#endif inline void* boost_stacktrace_impl_return_nullptr() { return nullptr; } const char* boost_stacktrace_impl_current_exception_stacktrace(); bool* boost_stacktrace_impl_ref_capture_stacktraces_at_throw();