qcap: Ifdef-out code that is not used if V4L support is missing.
authorFrancois Gouget <fgouget@free.fr>
Tue, 12 Apr 2011 17:39:40 +0000 (19:39 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 14 Apr 2011 15:37:18 +0000 (17:37 +0200)
dlls/qcap/yuv.c

index 5896ee54c9a0d2f65a95f4879f1e47994936efe5..608e571d1afa330f97dc3de85f93f6879f24e8f8 100644 (file)
@@ -21,6 +21,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include "config.h"
 #include <stdarg.h>
 
 #include "windef.h"
@@ -30,6 +31,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 +196,4 @@ void YUV_To_RGB24(enum YUV_Format format, unsigned char *target, const unsigned
       }
    }
 }
+#endif