Include <boost/config.h> in the build/* detectors

Fixes: https://github.com/boostorg/stacktrace/issues/229
This commit is contained in:
Antony Polukhin
2026-06-11 11:17:10 +03:00
parent e93f50def8
commit 4f8cabb87f
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@
#include <cstdlib>
// pick up "user.hpp" with the required defines such as BOOST_STACKTRACE_ADDR2LINE_LOCATION
#include <boost/config.hpp>
#include <unwind.h>
#include <sys/types.h>
+3
View File
@@ -4,6 +4,9 @@
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// pick up "user.hpp" with the required defines such as BOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE
#include <boost/config.hpp>
#ifdef BOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE
# include BOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE
#else