diff --git a/src/hx/libs/ssl/mbedtls_config.h b/src/hx/libs/ssl/mbedtls_config.h index d1cb1fd31..6227d63fc 100644 --- a/src/hx/libs/ssl/mbedtls_config.h +++ b/src/hx/libs/ssl/mbedtls_config.h @@ -5,6 +5,4 @@ #define MBEDTLS_THREADING_PTHREAD #endif -#undef MBEDTLS_NET_C - -#define MBEDTLS_THREADING_C \ No newline at end of file +#define MBEDTLS_THREADING_C diff --git a/src/hx/libs/ssl/threading_alt.h b/src/hx/libs/ssl/threading_alt.h index 99ed32f2b..5c707e23b 100644 --- a/src/hx/libs/ssl/threading_alt.h +++ b/src/hx/libs/ssl/threading_alt.h @@ -1,6 +1,7 @@ +#define WIN32_LEAN_AND_MEAN #include typedef struct { CRITICAL_SECTION cs; char is_valid; -} mbedtls_threading_mutex_t; \ No newline at end of file +} mbedtls_threading_mutex_t;