diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 8ece0f61831bfc94c517c700d2d33964b75fb7f8..c2dec15500608b0d822aa8506b4e9ab6330679ae 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -43,7 +43,7 @@
 #include "yuv2rgb_vis.c"
 #endif
 
-#ifdef HAVE_MLIB
+#ifdef CONFIG_MLIB
 #include "yuv2rgb_mlib.c"
 #endif
 
@@ -627,7 +627,7 @@ SwsFunc yuv2rgb_get_func_ptr (SwsContext *c)
         if (t) return t;
     }
 #endif
-#ifdef HAVE_MLIB
+#ifdef CONFIG_MLIB
     {
         SwsFunc t= yuv2rgb_init_mlib(c);
         if (t) return t;