HaxeFoundation / hxcpp

Runtime files for c++ backend for haxe
Other
295 stars 184 forks source link

Remove #undef MBEDTLS_NET_C from mbedtls_config #1128

Closed tobil4sk closed 2 months ago

tobil4sk commented 2 months ago

This was needed for windows because the <windows.h> include in threading_alt.h broke compilation for 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.

The simpler the mbedtls configuration the better, as other libraries may need to link against hxcpp's mbedtls, see: #1126.