0007-third-party-libjxl-src.patch 414 B

1234567891011121314151617
  1. diff --git a/lib/jxl/base/arch_macros.h b/lib/jxl/base/arch_macros.h
  2. index a983019..9f614fc 100644
  3. --- a/lib/jxl/base/arch_macros.h
  4. +++ b/lib/jxl/base/arch_macros.h
  5. @@ -28,6 +28,12 @@ namespace jxl {
  6. #define JXL_ARCH_ARM 0
  7. #endif
  8. +#if defined(__riscv) && __riscv_xlen == 64
  9. +#define JXL_ARCH_RISCV64 1
  10. +#else
  11. +#define JXL_ARCH_RISCV64 0
  12. +#endif
  13. +
  14. } // namespace jxl
  15. #endif // LIB_JXL_BASE_ARCH_MACROS_H_