Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(macro): Fixed clang warning about USING_V4L
Browse files Browse the repository at this point in the history
Clang produced this warning:
"macro expansion producing 'defined' has undefined behavior"
  • Loading branch information
yurivict committed May 8, 2017
1 parent e4d40dc commit dd59f5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/video/cameradevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dd59f5e

Please sign in to comment.