From 927dcf4a0ac70e0b67edbf5bfca1453a88c3882d Mon Sep 17 00:00:00 2001 From: goodpaperman Date: Thu, 18 Jul 2024 16:41:24 +0800 Subject: [PATCH] fix curl 8.4.0 compile error version compare bug fix --- build_libcurl_dist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_libcurl_dist.sh b/build_libcurl_dist.sh index 8eef757..eebb078 100755 --- a/build_libcurl_dist.sh +++ b/build_libcurl_dist.sh @@ -7,7 +7,7 @@ DIST_DIR=${DIST_DIR:-$DFT_DIST_DIR} function check_curl_ver() { echo "#include \"include/curl/curlver.h\" -#if LIBCURL_VERSION_MAJOR < 7 || LIBCURL_VERSION_MINOR < 55 +#if LIBCURL_VERSION_MAJOR < 7 && LIBCURL_VERSION_MINOR < 55 #error Required curl 7.40.0+; See http://curl.haxx.se/docs/adv_20150108A.html #error Supported minimal version is 7.55.0 for header file changes, see Issue #12 (https://github.com/sinofool/build-libcurl-ios/issues/12) #endif"|gcc -c -o /dev/null -xc -||exit 9