diff options
Diffstat (limited to 'include/arch/types.h')
| -rw-r--r-- | include/arch/types.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/arch/types.h b/include/arch/types.h index 7b1f07f..221c2e5 100644 --- a/include/arch/types.h +++ b/include/arch/types.h @@ -14,10 +14,12 @@ * \todo Fix incorrect include file reference in doxygen. */ -#if defined(riscv64) +#if defined(__riscv) +# if __riscv_xlen == 64 #include "../../arch/riscv64/include/types.h" -#elif defined(riscv32) +# elif #include "../../arch/riscv32/include/types.h" +# endif #endif #endif /* KMI_ARCH_TYPES_H */ |
