File tree Expand file tree Collapse file tree
include/boost/stacktrace/detail Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212#include " dbgeng.h"
1313
1414#ifdef BOOST_NO_CXX11_THREAD_LOCAL
15- # error Your compiler does not support C++11 thread_local storage. It' s impossible to build with BOOST_STACKTRACE_USE_WINDBG_CACHED.
15+ # error Your compiler does not support C++11 thread_local storage. It` s impossible to build with BOOST_STACKTRACE_USE_WINDBG_CACHED.
1616#endif
1717
1818int foo () {
Original file line number Diff line number Diff line change 1717#include < unwind.h>
1818#include < cstdio>
1919
20+ #if !defined(_GNU_SOURCE) && !defined(BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED)
21+ #error "Boost.Stacktrace requires `_Unwind_Backtrace` function. Define `_GNU_SOURCE` macro or `BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED` if _Unwind_Backtrace is available without `_GNU_SOURCE`."
22+ #endif
23+
2024namespace boost { namespace stacktrace { namespace detail {
2125
2226struct unwind_state {
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ public:
164164#else
165165
166166#ifdef BOOST_NO_CXX11_THREAD_LOCAL
167- # error Your compiler does not support C++11 thread_local storage. It' s impossible to build with BOOST_STACKTRACE_USE_WINDBG_CACHED.
167+ # error Your compiler does not support C++11 thread_local storage. It` s impossible to build with BOOST_STACKTRACE_USE_WINDBG_CACHED.
168168#endif
169169
170170 static com_holder< ::IDebugSymbols>& get_thread_local_debug_inst () BOOST_NOEXCEPT {
Original file line number Diff line number Diff line change 77#define BOOST_STACKTRACE_INTERNAL_BUILD_LIBS
88#define BOOST_STACKTRACE_USE_ADDR2LINE
99#define BOOST_STACKTRACE_LINK
10+
11+ #ifndef _GNU_SOURCE
12+ # define _GNU_SOURCE
13+ #endif
14+
1015#include < boost/stacktrace/detail/frame_unwind.ipp>
1116#include < boost/stacktrace/safe_dump_to.hpp>
Original file line number Diff line number Diff line change 77#define BOOST_STACKTRACE_INTERNAL_BUILD_LIBS
88#define BOOST_STACKTRACE_USE_BACKTRACE
99#define BOOST_STACKTRACE_LINK
10+
11+ #ifndef _GNU_SOURCE
12+ # define _GNU_SOURCE
13+ #endif
14+
1015#include < boost/stacktrace/detail/frame_unwind.ipp>
1116#include < boost/stacktrace/safe_dump_to.hpp>
Original file line number Diff line number Diff line change 66
77#define BOOST_STACKTRACE_INTERNAL_BUILD_LIBS
88#define BOOST_STACKTRACE_LINK
9+
10+ #ifndef _GNU_SOURCE
11+ # define _GNU_SOURCE
12+ #endif
13+
914#include < boost/stacktrace/detail/frame_unwind.ipp>
1015#include < boost/stacktrace/safe_dump_to.hpp>
You can’t perform that action at this time.
0 commit comments