curl/CMake
Viktor Szakats 6dacd2f208
src: add CURL_STRICMP() macro, use _stricmp() on Windows
Add `CURL_STRICMP()` macro that works on all platforms depending on
which lib C function is available.

Make sure to always use `_stricmp()` on Windows, which is the
non-deprecated, official API for this on this platform. Before this
patch it used a MinGW-specific call, or a deprecated compatibility
wrapper with MSVC.

Drop `stricmp` variant detections on Windows with autotools.

https://learn.microsoft.com/cpp/c-runtime-library/reference/stricmp-wcsicmp-mbsicmp-stricmp-l-wcsicmp-l-mbsicmp-l

Ref: #15652
Closes #15788
2024-12-23 22:06:07 +01:00
..
Platforms src: add CURL_STRICMP() macro, use _stricmp() on Windows 2024-12-23 22:06:07 +01:00
cmake_uninstall.cmake.in cmake: more small tidy-ups and fixes 2024-08-08 13:48:28 +02:00
CMakeConfigurableFile.in copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-config.cmake.in Revert: cmake: enable CURL_USE_PKGCONFIG for cross-MINGW 2024-12-17 03:21:22 +01:00
CurlSymbolHiding.cmake Makefile.mk: drop in favour of autotools and cmake (MS-DOS, AmigaOS3) 2024-12-16 23:20:55 +01:00
CurlTests.c Makefile.mk: drop in favour of autotools and cmake (MS-DOS, AmigaOS3) 2024-12-16 23:20:55 +01:00
FindBearSSL.cmake cmake: document -D and env build options 2024-10-24 23:06:40 +02:00
FindBrotli.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindCares.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindGSS.cmake cmake: drop redundant opening/closing .* from MATCH expressions 2024-12-20 11:38:59 +01:00
FindLDAP.cmake cmake: replace unset(VAR) with set(VAR "") for init 2024-12-16 21:12:51 +01:00
FindLibgsasl.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindLibidn2.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindLibpsl.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindLibssh2.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindLibssh.cmake cmake/FindLibssh: sync header comment with other modules 2024-12-22 11:47:19 +01:00
FindLibuv.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindMbedTLS.cmake cmake/FindMbedTLS: drop lib duplicates early 2024-12-14 23:43:02 +01:00
FindMSH3.cmake build: omit certain deps from libcurl.pc unless found via pkg-config 2024-11-14 22:38:47 +01:00
FindNettle.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindNGHTTP2.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindNGHTTP3.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindNGTCP2.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
FindQuiche.cmake cmake: document -D and env build options 2024-10-24 23:06:40 +02:00
FindRustls.cmake build: omit certain deps from libcurl.pc unless found via pkg-config 2024-11-14 22:38:47 +01:00
FindWolfSSH.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindWolfSSL.cmake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
FindZstd.cmake cmake: add native pkg-config detection for remaining Find modules 2024-12-17 02:30:55 +01:00
Macros.cmake cmake: extend zlib's AUTO option to brotli, zstd and enable if found 2024-12-17 04:06:45 +01:00
OtherTests.cmake Makefile.mk: drop in favour of autotools and cmake (MS-DOS, AmigaOS3) 2024-12-16 23:20:55 +01:00
PickyWarnings.cmake Makefile.mk: drop in favour of autotools and cmake (MS-DOS, AmigaOS3) 2024-12-16 23:20:55 +01:00
Utilities.cmake cmake: namespace functions and macros 2024-12-16 21:55:00 +01:00