summaryrefslogtreecommitdiffstats
path: root/thirdparty/mbedtls/library/sha256.c
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-08-31 15:25:10 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-08-31 15:35:37 +0200
commit4ac1f9c08a0e40c01f2b7024de51ecd23a68eec3 (patch)
treefdc1005eed758865923a0b17eb525dd6fb488d73 /thirdparty/mbedtls/library/sha256.c
parent40b378e9e2338d84f897f6991cc913a713295785 (diff)
downloadredot-engine-4ac1f9c08a0e40c01f2b7024de51ecd23a68eec3.tar.gz
[mbedTLS] Update to 3.6.1
Diffstat (limited to 'thirdparty/mbedtls/library/sha256.c')
-rw-r--r--thirdparty/mbedtls/library/sha256.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/thirdparty/mbedtls/library/sha256.c b/thirdparty/mbedtls/library/sha256.c
index 87889817a4..159acccaeb 100644
--- a/thirdparty/mbedtls/library/sha256.c
+++ b/thirdparty/mbedtls/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"
@@ -150,7 +152,9 @@ static int mbedtls_a64_crypto_sha256_determine_support(void)
return 1;
}
#elif defined(MBEDTLS_PLATFORM_IS_WINDOWS_ON_ARM64)
+#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
+#endif
#include <Windows.h>
#include <processthreadsapi.h>