From d26fc89aacc5e17f9c3d055e519920beb39d7994 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 22 Nov 2024 22:55:46 +1000 Subject: [PATCH] dep/imgui: RISC-V compile fix --- dep/imgui/src/stb_sprintf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dep/imgui/src/stb_sprintf.h b/dep/imgui/src/stb_sprintf.h index 74fbc4c63..6d611338a 100644 --- a/dep/imgui/src/stb_sprintf.h +++ b/dep/imgui/src/stb_sprintf.h @@ -230,7 +230,7 @@ STBSP__PUBLICDEC void STB_SPRINTF_DECORATE(set_separators)(char comma, char peri #define stbsp__uint16 unsigned short #ifndef stbsp__uintptr -#if defined(__ppc64__) || defined(__powerpc64__) || defined(__aarch64__) || defined(_M_X64) || defined(__x86_64__) || defined(__x86_64) || defined(__s390x__) +#if defined(__ppc64__) || defined(__powerpc64__) || defined(__aarch64__) || defined(_M_X64) || defined(__x86_64__) || defined(__x86_64) || defined(__s390x__) || (defined(__riscv) && __riscv_xlen == 64) #define stbsp__uintptr stbsp__uint64 #else #define stbsp__uintptr stbsp__uint32