python-ujson/100-python-ujson-uos-add-sw_64-support.patch

26 lines
1.0 KiB
Diff
Raw Permalink Normal View History

From 540452f5999168de7f8efd3c3e26cc69e9f094bd Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Thu, 12 Dec 2024 11:13:16 +0800
Subject: [PATCH] add sw_64 support
---
deps/double-conversion/double-conversion/utils.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/deps/double-conversion/double-conversion/utils.h b/deps/double-conversion/double-conversion/utils.h
index 7830972..46a1a2a 100644
--- a/deps/double-conversion/double-conversion/utils.h
+++ b/deps/double-conversion/double-conversion/utils.h
@@ -77,7 +77,7 @@ inline void abort_noreturn() { abort(); }
defined(__SH4__) || defined(__alpha__) || \
defined(_MIPS_ARCH_MIPS32R2) || \
defined(__AARCH64EL__) || defined(__aarch64__) || defined(_M_ARM64) || \
- defined(__riscv) || defined(__loongarch64)
+ defined(__riscv) || defined(__loongarch64) || defined(__sw_64__)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(__mc68000__)
#undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS
--
2.33.0