Dedupe and migrate MSVC-specific warning suppressions to `curl_setup.h`. Make cmake set `_CRT_SECURE_NO_DEPRECATE` for examples and standalone tests, and stop setting `_CRT_NONSTDC_NO_DEPRECATE` for them. Details: - drop version guards. On ancient MSVC version these macro are a no-op. - move to `curl_setup.h` from `config-win32*.h`. - sync macro values with CMake. - cmake: stop setting them globally in favour of `curl_setup.h`. - cmake: re-add these macros to `docs/examples` and `tests/http/clients`, which do not use `curl_setup.h`. - cmake: drop `_CRT_NONSTDC_NO_DEPRECATE` for examples and tests. They build fine without. - update comments. Closes #15960 |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| CMakeLists.txt | ||
| h2-pausing.c | ||
| h2-serverpush.c | ||
| h2-upgrade-extreme.c | ||
| hx-download.c | ||
| hx-upload.c | ||
| Makefile.am | ||
| Makefile.inc | ||
| tls-session-reuse.c | ||
| upload-pausing.c | ||
| ws-data.c | ||
| ws-pingpong.c | ||