Browse Source

消除riscv编译警告 (#653)

小王子与木头人 11 months ago
parent
commit
fded2ba287
1 changed files with 2 additions and 0 deletions
  1. 2 0
      base/hplatform.h

+ 2 - 0
base/hplatform.h

@@ -60,6 +60,8 @@
     #define ARCH_MIPS64
 #elif defined(__mips__)
     #define ARCH_MIPS
+#elif defined(__riscv)
+    #define ARCH_RISCV
 #else
     #warning "Untested hardware architecture!"
 #endif