Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / webrtc-audio-processing / enable-riscv.patch
blobd61c33548a73e0fc5c597649535f75e3e1f05db1
1 diff --git a/webrtc/typedefs.h b/webrtc/typedefs.h
2 index d875490..ce1f3e8 100644
3 --- a/webrtc/typedefs.h
4 +++ b/webrtc/typedefs.h
5 @@ -26,6 +26,13 @@
6 #elif defined(__aarch64__)
7 #define WEBRTC_ARCH_64_BITS
8 #define WEBRTC_ARCH_LITTLE_ENDIAN
9 +#elif defined(__riscv) || defined(__riscv__)
10 +#define WEBRTC_ARCH_LITTLE_ENDIAN
11 +#if __riscv_xlen == 64
12 +#define WEBRTC_ARCH_64_BITS
13 +#else
14 +#define WEBRTC_ARCH_32_BITS
15 +#endif
16 #elif defined(_M_IX86) || defined(__i386__)
17 #define WEBRTC_ARCH_X86_FAMILY
18 #define WEBRTC_ARCH_X86