Skip to content

Commit 97dda65

Browse files
committed
fast_float_parser.h: handle __has_builtin not being defined
1 parent 2203b8d commit 97dda65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/json/ext/vendor/fast_float_parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ ffc_nlz_int64(uint64_t x)
730730
unsigned long r;
731731
return _BitScanReverse64(&r, x) ? (63u - (unsigned int)r) : 64;
732732

733-
#elif __has_builtin(__builtin_clzl) && __has_builtin(__builtin_clzll) && !(defined(__sun) && defined(__sparc))
733+
#elif defined(__has_builtin) && __has_builtin(__builtin_clzl) && __has_builtin(__builtin_clzll) && !(defined(__sun) && defined(__sparc))
734734
if (x == 0) {
735735
return 64;
736736
}

0 commit comments

Comments
 (0)