forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure: add hack to rename ccan's sha256 routines to avoid libwall…
…y clash Signed-off-by: Rusty Russell <[email protected]>
- Loading branch information
1 parent
20e5bc9
commit 46aaf08
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef LIGHTNING_CCAN_COMPAT_H | ||
#define LIGHTNING_CCAN_COMPAT_H | ||
/* Magical file included from config.h (ie. everywhere) which renames | ||
* sha256 routines so they don't clash with libwally-core's internal ones */ | ||
#define sha256(sha, p, size) ccan_sha256(sha, p, size) | ||
#define sha256_init(ctx) ccan_sha256_init(ctx) | ||
#define sha256_update(ctx, p, size) ccan_sha256_update(ctx, p, size) | ||
#define sha256_done(sha256, res) ccan_sha256_done(sha256, res) | ||
#define sha256_u8(ctx, v) ccan_sha256_u8(ctx, v) | ||
#define sha256_u16(ctx, v) ccan_sha256_u16(ctx, v) | ||
#define sha256_u32(ctx, v) ccan_sha256_u32(ctx, v) | ||
#define sha256_u64(ctx, v) ccan_sha256_u64(ctx, v) | ||
#define sha256_le16(ctx, v) ccan_sha256_le16(ctx, v) | ||
#define sha256_le32(ctx, v) ccan_sha256_le32(ctx, v) | ||
#define sha256_le64(ctx, v) ccan_sha256_le64(ctx, v) | ||
#define sha256_be16(ctx, v) ccan_sha256_be16(ctx, v) | ||
#define sha256_be32(ctx, v) ccan_sha256_be32(ctx, v) | ||
#define sha256_be64(ctx, v) ccan_sha256_be64(ctx, v) | ||
#endif /* LIGHTNING_CCAN_COMPAT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters