commit | d338d0156f6c8883c11c47bf7949e2e56b849db2 | [log] [tgz] |
---|---|---|
author | nilesh.kale <nilesh.kale@espressif.com> | Tue Apr 02 18:10:39 2024 +0530 |
committer | nilesh.kale <nilesh.kale@espressif.com> | Tue Apr 30 08:24:47 2024 +0530 |
tree | 205b2cb51ab089831990ca462e4575f7e3faa18b | |
parent | bee96566dac936e7fdfa7aa18b6a1f67676afe0b [diff] [blame] |
Fixed issue of redefinition warning messages for _GNU_SOURCE Signed-off-by: nilesh.kale <nilesh.kale@espressif.com>
diff --git a/library/sha256.c b/library/sha256.c index 8788981..8b2c345 100644 --- a/library/sha256.c +++ b/library/sha256.c
@@ -44,7 +44,9 @@ #endif /* defined(__clang__) && (__clang_major__ >= 4) */ /* Ensure that SIG_SETMASK is defined when -std=c99 is used. */ +#if !defined(_GNU_SOURCE) #define _GNU_SOURCE +#endif #include "common.h"