Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove #undef MBEDTLS_NET_C from mbedtls_config #1128

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

tobil4sk
Copy link
Member

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 <windows.h> 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.

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
<windows.h> in `threading_alt.h`, which avoids the issue so we can
remove this #undef.
@Simn Simn merged commit 01cfee2 into HaxeFoundation:master Jul 15, 2024
90 of 100 checks passed
@tobil4sk tobil4sk deleted the fix/mbedtls-config-cleanup branch July 15, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants