Skip to content

Commit

Permalink
Fix redefined macro warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jun 18, 2024
1 parent 4cde870 commit 3682263
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Sming/Components/bearssl-esp8266/bearssl.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
diff --git a/src/ec/ec_p256_m62.c b/src/ec/ec_p256_m62.c
index a431790..324486f 100644
--- a/src/ec/ec_p256_m62.c
+++ b/src/ec/ec_p256_m62.c
@@ -81,6 +81,7 @@ api_xoff(int curve, size_t *len)
* In particular, such a value is less than twice the modulus p.
*/

+#undef BIT
#define BIT(n) ((uint64_t)1 << (n))
#define MASK48 (BIT(48) - BIT(0))
#define MASK52 (BIT(52) - BIT(0))
diff --git a/src/inner.h b/src/inner.h
index 0a62d9c..e94b7cd 100644
--- a/src/inner.h
Expand Down

0 comments on commit 3682263

Please sign in to comment.