mirror of
https://github.com/curl/curl.git
synced 2026-07-28 17:23:06 +03:00
tool_urlglob: enable builtin with clang
First supported in llvm/clang 3.8. Use a version number that covers this also for Apple clang, which matched 3.8 at its version 7.3.
This commit is contained in:
parent
13657753a1
commit
e19e4441c0
1 changed files with 3 additions and 2 deletions
|
|
@ -68,8 +68,9 @@ static int multiply(curl_off_t *amount, curl_off_t with)
|
|||
sum = 0;
|
||||
}
|
||||
else {
|
||||
#if defined(__GNUC__) && \
|
||||
((__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 1)))
|
||||
#if (defined(__GNUC__) && \
|
||||
((__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 1)))) || \
|
||||
(defined(__clang__) && __clang_major__ >= 8)
|
||||
if(__builtin_mul_overflow(*amount, with, &sum))
|
||||
return 1;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue