0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

[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.
This commit is contained in:
TheCharlatan 2023-09-07 09:03:04 +02:00
parent 36193af47c
commit d506765199
No known key found for this signature in database
GPG key ID: 9B79B45691DB4173
3 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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>

View file

@ -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>