Browse Source

ppapi: tests: resolve browser_test build issues

Signed-off-by: weiheng.cheng <weiheng.cheng@starfivetech.com>
weiheng.cheng 1 year ago
parent
commit
8965906032
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ppapi/tests/test_struct_sizes.c

+ 1 - 1
ppapi/tests/test_struct_sizes.c

@@ -12,7 +12,7 @@
 
 #include "ppapi/tests/all_c_includes.h"
 
-#if !defined(__native_client__) && (defined(_M_X64) || defined(__x86_64__) || defined(__aarch64__) || defined(__mips64))
+#if !defined(__native_client__) && (defined(_M_X64) || defined(__x86_64__) || defined(__aarch64__) || defined(__mips64) || (defined(__riscv) && __riscv_xlen == 64))
 /* This section is for 64-bit compilation on Windows, Mac, and Linux.  Native
    client follows ILP32 even if -m64 is used, so NaCl code is explicitly treated
    as 32-bit.  This means pointers are always 4 bytes in native client, and it