aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls/mbedtls_threadlock.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-13 09:20:36 -0400
committerDaniel Stenberg <daniel@haxx.se>2020-04-14 23:07:18 +0200
commit89f1e639f6a8d1f4dfb309b95f49028f6c826d47 (patch)
treece6ebd190d299810df19ecab1db8894c6de2c945 /lib/vtls/mbedtls_threadlock.c
parent42e18528f63ad9be46e179cca73bc2b0d2da9eeb (diff)
cmake: Avoid MSVC C4273 warnings in send/recv checks
We use `check_c_source_compiles` to check possible send/recv signatures by reproducing the forward declarations from system headers. On Windows the `winsock2.h` header adds dll linkage settings to its forward declaration. If ours does not match the compiler warns: warning C4273: 'recv': inconsistent dll linkage Add `WINSOCK_API_LINKAGE` to our test signatures when it is defined so that our linkage is consistent with that from `winsock2.h`. Fixes #4764 Closes #5232
Diffstat (limited to 'lib/vtls/mbedtls_threadlock.c')
0 files changed, 0 insertions, 0 deletions