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

Alexandre Julliard julliard at winehq.org
Thu Apr 14 11:58:20 CDT 2011


Module: wine
Branch: master
Commit: 6a48fcec48a0cb274884522e336b73606d21495f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6a48fcec48a0cb274884522e336b73606d21495f

Author: Francois Gouget <fgouget at free.fr>
Date:   Tue Apr 12 19:39:40 2011 +0200

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

---

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

diff --git a/dlls/qcap/yuv.c b/dlls/qcap/yuv.c
index 5896ee5..608e571 100644
--- a/dlls/qcap/yuv.c
+++ b/dlls/qcap/yuv.c
@@ -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




More information about the wine-cvs mailing list