From 36822639f8aeea20d3e38a9b54a9a7921fd3f9d8 Mon Sep 17 00:00:00 2001 From: mikee47 Date: Mon, 17 Jun 2024 21:29:12 +0100 Subject: [PATCH] Fix redefined macro warning --- Sming/Components/bearssl-esp8266/bearssl.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Sming/Components/bearssl-esp8266/bearssl.patch b/Sming/Components/bearssl-esp8266/bearssl.patch index 6b9ed1ebec..22c3691f01 100644 --- a/Sming/Components/bearssl-esp8266/bearssl.patch +++ b/Sming/Components/bearssl-esp8266/bearssl.patch @@ -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