diff --git a/libavcodec/fft.c b/libavcodec/fft.c
index 296f634663366301f5cefd2392d00b17e9c873fb..a3f115147210251fd07045cb936d053042dbae05 100644
--- a/libavcodec/fft.c
+++ b/libavcodec/fft.c
@@ -106,7 +106,7 @@ av_cold int ff_fft_init(FFTContext *s, int nbits, int inverse)
         s->imdct_half = ff_imdct_half_3dn;
         s->fft_calc   = ff_fft_calc_3dn;
     }
-#elif HAVE_ALTIVEC && !defined ALTIVEC_USE_REFERENCE_C_CODE
+#elif HAVE_ALTIVEC
     has_vectors = mm_support();
     if (has_vectors & FF_MM_ALTIVEC) {
         s->fft_calc = ff_fft_calc_altivec;