From: Viktor Szakats Date: Tue, 7 Jan 2025 10:02:10 +0000 (+0100) Subject: cmake: pre-fill `HAVE_STDINT_H` on Windows X-Git-Tag: curl-8_12_0~188 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6566f332f900cc078d4013b85029b4281de99a5;p=thirdparty%2Fcurl.git cmake: pre-fill `HAVE_STDINT_H` on Windows Closes #15925 --- diff --git a/CMake/win32-cache.cmake b/CMake/win32-cache.cmake index 76b0d8c114..cb55b74774 100644 --- a/CMake/win32-cache.cmake +++ b/CMake/win32-cache.cmake @@ -32,6 +32,7 @@ if(MINGW) set(HAVE_UNISTD_H 1) set(HAVE_LIBGEN_H 1) set(HAVE_STDDEF_H 1) # detected by CMake internally in check_type_size() + set(HAVE_STDINT_H 1) # detected by CMake internally in check_type_size() set(HAVE_STDBOOL_H 1) set(HAVE_BOOL_T "${HAVE_STDBOOL_H}") set(HAVE_STRTOLL 1) @@ -58,6 +59,11 @@ else() set(HAVE_UNISTD_H 0) set(HAVE_STDDEF_H 1) # detected by CMake internally in check_type_size() set(HAVE_STDATOMIC_H 0) + if(NOT MSVC_VERSION LESS 1600) + set(HAVE_STDINT_H 1) # detected by CMake internally in check_type_size() + else() + set(HAVE_STDINT_H 0) # detected by CMake internally in check_type_size() + endif() if(NOT MSVC_VERSION LESS 1800) set(HAVE_STDBOOL_H 1) set(HAVE_STRTOLL 1)