1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(macro): Fixed clang warning about USING_V4L

Clang produced this warning:
"macro expansion producing 'defined' has undefined behavior"
This commit is contained in:
Yuri 2017-05-08 09:25:52 -07:00
parent e4d40dcb96
commit dd59f5ee90

View File

@ -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"