Skip to content

Commit 34bc289

Browse files
committed
fast_float_parser.h: handle __has_builtin not being defined
1 parent c171e34 commit 34bc289

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
@@ -720,7 +720,7 @@ ffc_nlz_int64(uint64_t x)
720720
unsigned long r;
721721
return _BitScanReverse64(&r, x) ? (63u - (unsigned int)r) : 64;
722722

723-
#elif __has_builtin(__builtin_clzll)
723+
#elif defined(__has_builtin) && __has_builtin(__builtin_clzll)
724724
return (unsigned int)__builtin_clzll((unsigned long long)x);
725725

726726
#else

0 commit comments

Comments
 (0)