Skip to content

Commit d506765

Browse files
committed
[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.
1 parent 36193af commit d506765

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/random.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <random.h>
77

8+
#include <compat/compat.h>
89
#include <compat/cpuid.h>
910
#include <crypto/chacha20.h>
1011
#include <crypto/sha256.h>

src/randomenv.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <randomenv.h>
1111

1212
#include <clientversion.h>
13+
#include <compat/compat.h>
1314
#include <compat/cpuid.h>
1415
#include <crypto/sha512.h>
1516
#include <support/cleanse.h>

src/util/time.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
#ifndef BITCOIN_UTIL_TIME_H
77
#define BITCOIN_UTIL_TIME_H
88

9-
#include <compat/compat.h>
10-
119
#include <chrono> // IWYU pragma: export
1210
#include <cstdint>
1311
#include <string>

0 commit comments

Comments
 (0)