mirror of
https://github.com/curl/curl.git
synced 2026-07-28 11:23:12 +03:00
build: tidy up __builtin_available feature checks (Apple)
- sync detection snippet between autotools and cmake
It wasn't causing issues, but it's useful to avoid unnecessary
differences while debugging.
- cmake: limit check to `APPLE`.
Ref: b05dc7eb35 #14122
Cherry-picked from #14097
Closes #14127
This commit is contained in:
parent
80fb7c0bef
commit
cfd6f43d6c
4 changed files with 6 additions and 6 deletions
|
|
@ -1649,9 +1649,8 @@ AC_DEFUN([CURL_SUPPORTS_BUILTIN_AVAILABLE], [
|
|||
AC_MSG_CHECKING([to see if the compiler supports __builtin_available()])
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
#include <stdlib.h>
|
||||
]],[[
|
||||
if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
|
||||
if(__builtin_available(macOS 10.12, iOS 5.0, *)) {}
|
||||
]])
|
||||
],[
|
||||
AC_MSG_RESULT([yes])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue