diff mbox series

[FFmpeg-devel] riscv: Fix linking without RVV; change #ifdef into #if

Message ID 20220929050349.61637-1-martin@martin.st
State Accepted
Commit 6059ea2a14747a44e937a3409ff3cfcab7aa1468
Headers show
Series [FFmpeg-devel] riscv: Fix linking without RVV; change #ifdef into #if | expand

Commit Message

Martin Storsjö Sept. 29, 2022, 5:03 a.m. UTC
---
This should hopefully fix the current build failures at
http://fate.ffmpeg.org/history.cgi?slot=riscv64-linux-gnu-clang-14.
---
 libavcodec/riscv/fmtconvert_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/riscv/fmtconvert_init.c b/libavcodec/riscv/fmtconvert_init.c
index fd1a8e0ca1..2ded9d3615 100644
--- a/libavcodec/riscv/fmtconvert_init.c
+++ b/libavcodec/riscv/fmtconvert_init.c
@@ -33,7 +33,7 @@  void ff_int32_to_float_fmul_array8_rvv(FmtConvertContext *c, float *dst,
 
 av_cold void ff_fmt_convert_init_riscv(FmtConvertContext *c)
 {
-#ifdef HAVE_RVV
+#if HAVE_RVV
     int flags = av_get_cpu_flags();
 
     if (flags & AV_CPU_FLAG_RVV_F32) {