diff --git a/src/libsha1/libsha1.c b/src/libsha1/libsha1.c index 7ff3846..fcf01c5 100644 --- a/src/libsha1/libsha1.c +++ b/src/libsha1/libsha1.c @@ -18,7 +18,7 @@ A million repetitions of "a" /* #define LITTLE_ENDIAN * This should be #define'd already, if true. */ /* #define SHA1HANDSOFF * Copies data before messing with it. */ -#ifndef ESP8266 +#if !defined(ESP8266) && !defined(ESP32) #define SHA1HANDSOFF diff --git a/src/libsha1/libsha1.h b/src/libsha1/libsha1.h index 1f08d0e..40afa61 100644 --- a/src/libsha1/libsha1.h +++ b/src/libsha1/libsha1.h @@ -5,7 +5,7 @@ By Steve Reid 100% Public Domain */ -#ifndef ESP8266 +#if !defined(ESP8266) && !defined(ESP32) typedef struct { uint32_t state[5]; @@ -18,4 +18,4 @@ void SHA1Init(SHA1_CTX* context); void SHA1Update(SHA1_CTX* context, const unsigned char* data, uint32_t len); void SHA1Final(unsigned char digest[20], SHA1_CTX* context); -#endif \ No newline at end of file +#endif