From d5067651991f3e6daf456ba13c7036ddc4545352 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Thu, 7 Sep 2023 09:03:04 +0200 Subject: [PATCH] [refactor] Remove compat.h from kernel headers This commit makes compat.h no longer a required include for users of the libbitcoinkernel. Including compat.h imports a bunch of platform-specific definitions. This commit is part of the libbitcoinkernel project, namely its stage 1 step 3: Decouple most non-consensus headers from libbitcoinkernel. --- src/random.cpp | 1 + src/randomenv.cpp | 1 + src/util/time.h | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/random.cpp b/src/random.cpp index 51b8b3ad9d1..9bd8ff9f1a4 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -5,6 +5,7 @@ #include +#include #include #include #include diff --git a/src/randomenv.cpp b/src/randomenv.cpp index 581612bccf3..da81a616513 100644 --- a/src/randomenv.cpp +++ b/src/randomenv.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include #include diff --git a/src/util/time.h b/src/util/time.h index b6aab615bac..6aa776137c1 100644 --- a/src/util/time.h +++ b/src/util/time.h @@ -6,8 +6,6 @@ #ifndef BITCOIN_UTIL_TIME_H #define BITCOIN_UTIL_TIME_H -#include - #include // IWYU pragma: export #include #include