Skip to content

Commit 16a7e2d

Browse files
committed
Define SHA1 function as SHA1_ to make it a "private" symbol when building on Arduino
1 parent fad0319 commit 16a7e2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utility/sha1.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ void SHA1Final(
3636
SHA1_CTX * context
3737
);
3838

39+
#ifdef ARDUINO
40+
#define SHA1 SHA1_ // to make the function "internal"
41+
#endif
42+
3943
void SHA1(
4044
char *hash_out,
4145
const char *str,

0 commit comments

Comments
 (0)