Skip to content

Commit 6e78616

Browse files
committed
refactor: fix missing includes
These cause compile failures with _LIBCPP_REMOVE_TRANSITIVE_INCLUDES. i.e: ```bash In file included from init.cpp:8: ./init.h:46:54: error: no template named 'atomic' in namespace 'std' 46 | bool AppInitBasicSetup(const ArgsManager& args, std::atomic<int>& exit_status); | ~~~~~^ 1 error generated. ``` See: https://libcxx.llvm.org/DesignDocs/HeaderRemovalPolicy.html.
1 parent fa0b5d6 commit 6e78616

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/crypto/sha256.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
#include <crypto/sha256.h>
88
#include <crypto/common.h>
99

10-
#include <assert.h>
11-
#include <string.h>
10+
#include <algorithm>
11+
#include <cassert>
12+
#include <cstring>
1213

1314
#if !defined(DISABLE_OPTIMIZED_SHA256)
1415
#include <compat/cpuid.h>

src/init.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
#ifndef BITCOIN_INIT_H
77
#define BITCOIN_INIT_H
88

9-
#include <any>
10-
#include <memory>
11-
#include <string>
9+
#include <atomic>
1210

1311
//! Default value for -daemon option
1412
static constexpr bool DEFAULT_DAEMON = false;

0 commit comments

Comments
 (0)