File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 3333#include "src/secp256k1/src/secp256k1.c"
3434#include "src/secp256k1/src/precomputed_ecmult_gen.c"
3535#include "src/secp256k1/src/precomputed_ecmult.c"
36- #include "src/ccan/ccan/crypto/sha256/sha256.c"
36+
37+ /* Force the inclusion of our internal header first, so that
38+ * config.h (which must be provided by the amalgamation user)
39+ * is included.
40+ */
41+ #include "src/internal.h"
42+
43+ /* The amalgamation user can provide their own defines and skip
44+ * providing a ccan_config.h if they define _WALLY_CCAN_CONFIG_H_.
45+ */
46+ #ifndef _WALLY_CCAN_CONFIG_H_
47+ #include "src/ccan_config.h"
48+ #endif
3749
3850#include "src/internal.c"
3951#include "src/address.c"
6678#include "src/wif.c"
6779#include "src/wordlist.c"
6880
81+ /* ccan sources */
82+ #include "src/ccan/ccan/crypto/sha256/sha256.c"
83+
6984/* Redefine internal names so sha-512 can be included without conflicts */
7085#define Round Round_512
7186#define Transform Transform_512
Original file line number Diff line number Diff line change 1+ #ifndef _WALLY_CCAN_CONFIG_H_
2+ #define _WALLY_CCAN_CONFIG_H_ 1
3+
14/* Config directives for ccan */
5+
26#include <stddef.h>
37
48#ifdef WORDS_BIGENDIAN
5559void wally_clear (void * p , size_t len );
5660
5761#define CCAN_CLEAR_MEMORY (p , len ) wally_clear(p, len)
62+
63+ #endif /*_WALLY_CCAN_CONFIG_H_ */
You can’t perform that action at this time.
0 commit comments