curl/CMake
Brad King 89f1e639f6
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
2020-04-14 23:07:18 +02:00
..
Platforms copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
CMakeConfigurableFile.in copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
CurlSymbolHiding.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
CurlTests.c copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
FindBearSSL.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
FindBrotli.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
FindCARES.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
FindGSS.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
FindLibSSH2.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
FindMbedTLS.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
FindNGHTTP2.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
FindNSS.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
FindWolfSSL.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
Macros.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
OtherTests.cmake cmake: Avoid MSVC C4273 warnings in send/recv checks 2020-04-14 23:07:18 +02:00
Utilities.cmake copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
cmake_uninstall.cmake.in copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00
curl-config.cmake.in copyright: fix out-of-date copyright ranges and missing headers 2020-03-24 15:05:59 +01:00