Closed tobil4sk closed 2 months ago
This was needed for windows because the <windows.h> include in threading_alt.h broke compilation for net_sockets.c.
<windows.h>
threading_alt.h
net_sockets.c
However, we can instead define WIN32_LEAN_AND_MEAN before including in threading_alt.h, which avoids the issue so we can remove this #undef.
WIN32_LEAN_AND_MEAN
The simpler the mbedtls configuration the better, as other libraries may need to link against hxcpp's mbedtls, see: #1126.
This was needed for windows because the
<windows.h>
include inthreading_alt.h
broke compilation fornet_sockets.c
.However, we can instead define in
WIN32_LEAN_AND_MEAN
before includingthreading_alt.h
, which avoids the issue so we can remove this #undef.The simpler the mbedtls configuration the better, as other libraries may need to link against hxcpp's mbedtls, see: #1126.