Explorar el Código

Merge pull request #90691 from Faless/fix/mbedtls_core_config_mingw

mbedTLS: Fix build without the module on MinGW
Rémi Verschelde hace 1 año
padre
commit
4728ff30c0
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      thirdparty/mbedtls/include/godot_core_mbedtls_config.h

+ 7 - 0
thirdparty/mbedtls/include/godot_core_mbedtls_config.h

@@ -50,4 +50,11 @@
 #define MBEDTLS_PLATFORM_ZEROIZE_ALT
 #define MBEDTLS_PLATFORM_ZEROIZE_ALT
 #define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
 #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
 #endif // GODOT_CORE_MBEDTLS_CONFIG_H