Skip to content

Commit

Permalink
Remove #undef MBEDTLS_NET_C from mbedtls_config.h (#292)
Browse files Browse the repository at this point in the history
This was needed for windows because the `<windows.h>` include in
`threading_alt.h` broke compilation for `net_sockets.c`.

See:
888a4b5#diff-979457dd66ad2cbc13093859faaa000ccbc1ad4d24a135f4d6a367a99c13071dR22-R23

However, now that the `WIN32_LEAN_AND_MEAN` define has been added to
`threading_alt.h`, this avoids the issue so we can remove this #undef.
  • Loading branch information
tobil4sk authored Jul 11, 2024
1 parent ba49f62 commit abfc747
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libs/ssl/mbedtls_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
#define MBEDTLS_THREADING_PTHREAD
#endif

#undef MBEDTLS_NET_C

#define MBEDTLS_THREADING_C

0 comments on commit abfc747

Please sign in to comment.