diff --git a/src/video/cameradevice.cpp b/src/video/cameradevice.cpp index a186311f4..7b25feac0 100644 --- a/src/video/cameradevice.cpp +++ b/src/video/cameradevice.cpp @@ -28,7 +28,11 @@ extern "C" { #include "cameradevice.h" #include "src/persistence/settings.h" -#define USING_V4L defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) +#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) +#define USING_V4L 1 +#else +#define USING_V4L 0 +#endif #ifdef Q_OS_WIN #include "src/platform/camera/directshow.h"