[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.
pull/28423/head
TheCharlatan 1 year ago
parent 36193af47c
commit d506765199
No known key found for this signature in database
GPG Key ID: 9B79B45691DB4173

@ -5,6 +5,7 @@
#include <random.h>
#include <compat/compat.h>
#include <compat/cpuid.h>
#include <crypto/chacha20.h>
#include <crypto/sha256.h>

@ -10,6 +10,7 @@
#include <randomenv.h>
#include <clientversion.h>
#include <compat/compat.h>
#include <compat/cpuid.h>
#include <crypto/sha512.h>
#include <support/cleanse.h>

@ -6,8 +6,6 @@
#ifndef BITCOIN_UTIL_TIME_H
#define BITCOIN_UTIL_TIME_H
#include <compat/compat.h>
#include <chrono> // IWYU pragma: export
#include <cstdint>
#include <string>

Loading…
Cancel
Save