Skip to content

Commit

Permalink
[refactor] Remove compat.h from kernel headers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TheCharlatan committed Sep 12, 2023
1 parent 36193af commit d506765
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/random.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <random.h>

#include <compat/compat.h>
#include <compat/cpuid.h>
#include <crypto/chacha20.h>
#include <crypto/sha256.h>
Expand Down
1 change: 1 addition & 0 deletions src/randomenv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions src/util/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit d506765

Please sign in to comment.