Skip to content

Commit 5abb93f

Browse files
committed
Fix include path for bitcoin-config.h in crypto/common.h
All the other files in the repo which include bitcoin-config.h do so with the appropriate subfolder prefixed: config/bitcoin-config.h The header should be included with the appropriate subfolder here as well. This canonicalization also allows getting rid of a bit of extra configuration in Makefile.am.
1 parent d81dccf commit 5abb93f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Makefile.am

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ else
1818
LIBUNIVALUE = $(UNIVALUE_LIBS)
1919
endif
2020

21-
BITCOIN_CONFIG_INCLUDES=-I$(builddir)/config
2221
BITCOIN_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BDB_CPPFLAGS) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) $(CRYPTO_CFLAGS) $(SSL_CFLAGS)
2322

2423
BITCOIN_INCLUDES += -I$(srcdir)/secp256k1/include
@@ -250,7 +249,7 @@ libbitcoin_wallet_a_SOURCES = \
250249
$(BITCOIN_CORE_H)
251250

252251
# crypto primitives library
253-
crypto_libbitcoin_crypto_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_CONFIG_INCLUDES)
252+
crypto_libbitcoin_crypto_a_CPPFLAGS = $(AM_CPPFLAGS)
254253
crypto_libbitcoin_crypto_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
255254
crypto_libbitcoin_crypto_a_SOURCES = \
256255
crypto/aes.cpp \

src/crypto/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define BITCOIN_CRYPTO_COMMON_H
77

88
#if defined(HAVE_CONFIG_H)
9-
#include "bitcoin-config.h"
9+
#include "config/bitcoin-config.h"
1010
#endif
1111

1212
#include <stdint.h>

0 commit comments

Comments
 (0)