dep/rapidyaml: Fix LoongArch compile

This commit is contained in:
Yang Liu
2026-03-02 14:33:52 +08:00
committed by Connor McLaughlin
parent 8a7db2ad54
commit db0de91b98

View File

@@ -131,6 +131,16 @@
# endif
# define C4_BYTE_ORDER _C4EL
#elif defined(__loongarch__)
# if defined(__loongarch64)
# define C4_CPU_LOONGARCH64
# define C4_WORDSIZE 8
# else
# define C4_CPU_LOONGARCH
# define C4_WORDSIZE 4
# endif
# define C4_BYTE_ORDER _C4EL
#elif defined(__EMSCRIPTEN__)
# define C4_BYTE_ORDER _C4EL
# define C4_WORDSIZE 4