Skip to content

Commit 580550f

Browse files
committed
yaml: Fix compilation in cygwin
1 parent e9bda0a commit 580550f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/rapidyaml/c4/ext/fast_float_all.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ value128 full_multiplication(uint64_t a, uint64_t b) {
416416
// But MinGW on ARM64 doesn't have native support for 64-bit multiplications
417417
answer.high = __umulh(a, b);
418418
answer.low = a * b;
419-
#elif defined(FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__))
419+
#elif defined(FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__) && !defined(__CYGWIN__))
420420
answer.low = _umul128(a, b, &answer.high); // _umul128 not available on ARM64
421421
#elif defined(FASTFLOAT_64BIT) && defined(__SIZEOF_INT128__)
422422
__uint128_t r = ((__uint128_t)a) * b;

0 commit comments

Comments
 (0)