From 6bdff429ec17eae4138c3af1e21de3ec46f4ab13 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 20 Oct 2023 14:15:52 +0100 Subject: build: Include `config/bitcoin-config.h` explicitly in `util/trace.h` The `ENABLE_TRACING` macro is expected to be defined in the `config/bitcoin-config.h` header. Therefore, the current code is error-prone as it depends on whether the `config/bitcoin-config.h` header was included before or not. --- src/util/trace.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/util/trace.h b/src/util/trace.h index 051921a0d2..1fe743f043 100644 --- a/src/util/trace.h +++ b/src/util/trace.h @@ -5,6 +5,10 @@ #ifndef BITCOIN_UTIL_TRACE_H #define BITCOIN_UTIL_TRACE_H +#if defined(HAVE_CONFIG_H) +#include +#endif + #ifdef ENABLE_TRACING #include -- cgit v1.2.3