summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-04-15 18:14:48 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-04-15 18:14:48 +0200
commit4728ff30c0226b9918b29a6ba494dc61eae87639 (patch)
tree196b3b1908bad5eeed0c03e027eb40f2ac7b2b1d
parent8a3195ef561d5c3aa96c531ab7c651f43bcd0a02 (diff)
parent060097bbf84ebb155221395d9ae7a96b76a24899 (diff)
downloadredot-engine-4728ff30c0226b9918b29a6ba494dc61eae87639.tar.gz
Merge pull request #90691 from Faless/fix/mbedtls_core_config_mingw
mbedTLS: Fix build without the module on MinGW
-rw-r--r--thirdparty/mbedtls/include/godot_core_mbedtls_config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/thirdparty/mbedtls/include/godot_core_mbedtls_config.h b/thirdparty/mbedtls/include/godot_core_mbedtls_config.h
index d27bf608fb..f22ef3aa08 100644
--- a/thirdparty/mbedtls/include/godot_core_mbedtls_config.h
+++ b/thirdparty/mbedtls/include/godot_core_mbedtls_config.h
@@ -50,4 +50,11 @@
#define MBEDTLS_PLATFORM_ZEROIZE_ALT
#define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
+// This is only to pass a check in the mbedtls check_config.h header, none of
+// the files we include as part of the core build uses it anyway, we already
+// define MBEDTLS_PLATFORM_ZEROIZE_ALT which is the only relevant function.
+#if defined(__MINGW32__)
+#define MBEDTLS_PLATFORM_C
+#endif
+
#endif // GODOT_CORE_MBEDTLS_CONFIG_H