curl/m4
Viktor Szakats c1bc090d65
windows: simplify detecting and using system headers
- autotools, cmake: assume that if we detect Windows, `windows.h`,
  `winsock2.h` and `ws2tcpip.h` do exist.
- lib: fix 3 outlier `#if` conditions to use `USE_WINSOCK` instead of
  looking for `winsock2.h`.
- autotools: merge 3 Windows check methods into one.
- move Watt-32 and lwIP socket support to `setup-win32.h` from
  `config-win32.h`. It opens up using these with all build tools. Also
  merge logic with Windows Sockets.
- fix to assume Windows sockets with the mingw32ce toolchain.
  Follow-up to: 2748c64d60
- cmake: delete unused variable `signature_call_conv` since
  eb33ccd533.
- autotools: simplify `CURL_CHECK_WIN32_LARGEFILE` detection.
- examples/externalsocket: fix header order.
- cmake/OtherTests.cmake: delete Windows-specific `_source_epilogue`
  that wasn't used anymore.
- cmake/OtherTests.cmake: set `WIN32_LEAN_AND_MEAN` for test
  `SIZEOF_STRUCT_SOCKADDR_STORAGE`.

After this patch curl universally uses `_WIN32` to guard
Windows-specific logic. It guards Windows Sockets-specific logic with
`USE_WINSOCK` (this might need further work).

Reviewed-by: Jay Satiro
Closes #12495
2023-12-16 13:13:44 +00:00
..
.gitignore copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-amissl.m4 tidy-up: use OPENSSL_VERSION_NUMBER 2023-11-08 17:55:22 +00:00
curl-bearssl.m4 tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
curl-compilers.m4 windows: simplify detecting and using system headers 2023-12-16 13:13:44 +00:00
curl-confopts.m4 misc: fix spelling mistakes 2023-05-23 10:42:09 +02:00
curl-functions.m4 windows: simplify detecting and using system headers 2023-12-16 13:13:44 +00:00
curl-gnutls.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-mbedtls.m4 tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
curl-openssl.m4 tidy-up: use OPENSSL_VERSION_NUMBER 2023-11-08 17:55:22 +00:00
curl-override.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-reentrant.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-rustls.m4 tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
curl-schannel.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-sectransp.m4 cmake, configure: also link with CoreServices 2023-09-20 08:38:19 +02:00
curl-sysconfig.m4 cmake, configure: also link with CoreServices 2023-09-20 08:38:19 +02:00
curl-wolfssl.m4 tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
xc-am-iface.m4 build: drop the use of XC_AMEND_DISTCLEAN 2023-03-03 09:54:44 +01:00
xc-cc-check.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
xc-lt-iface.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
xc-translit.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
xc-val-flgs.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
zz40-xc-ovr.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
zz50-xc-ovr.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
zz60-xc-ovr.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00