qcap: Ifdef-out code that is not used if V4L support is missing.

Francois Gouget fgouget at free.fr
Tue Apr 12 12:39:40 CDT 2011


---
 dlls/qcap/yuv.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/qcap/yuv.c b/dlls/qcap/yuv.c
index 5896ee5..e08923d 100644
--- a/dlls/qcap/yuv.c
+++ b/dlls/qcap/yuv.c
@@ -30,6 +30,9 @@
 #include "qcap_main.h"
 #include "wine/debug.h"
 
+/* This is not used if V4L support is missing */
+#ifdef HAVE_LINUX_VIDEODEV_H
+
 WINE_DEFAULT_DEBUG_CHANNEL(qcap);
 
 static int yuv_xy[256]; /* Gray value */
@@ -192,3 +195,4 @@ void YUV_To_RGB24(enum YUV_Format format, unsigned char *target, const unsigned
       }
    }
 }
+#endif
-- 
1.7.4.1



More information about the wine-patches mailing list