summaryrefslogtreecommitdiffhomepage
path: root/compat/camera-names.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2020-05-31 06:54:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2020-05-31 06:54:33 +0200
commit8b14345cf6e06a2938dc7cd8de5e8ca2ec2df039 (patch)
tree93e59691ab2fc2d9c53a74f5f8a7d452dd10195f /compat/camera-names.cpp
parentbc368174cb015f2291cb8dc2f3e2a5782b22cdc8 (diff)
kill the obsolete OS check macro
Diffstat (limited to 'compat/camera-names.cpp')
-rw-r--r--compat/camera-names.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/camera-names.cpp b/compat/camera-names.cpp
index 8e777028..5d190943 100644
--- a/compat/camera-names.cpp
+++ b/compat/camera-names.cpp
@@ -7,7 +7,7 @@
# include <cwchar>
# define NO_DSHOW_STRSAFE
# include <dshow.h>
-#elif defined(__unix) || defined(__linux) || defined(__APPLE__)
+#elif defined(__unix) || defined(__linux__) || defined(__APPLE__)
# include <unistd.h>
#endif
@@ -15,7 +15,7 @@
# include <QCameraInfo>
#endif
-#ifdef __linux
+#ifdef __linux__
# include <fcntl.h>
# include <sys/ioctl.h>
# include <linux/videodev2.h>
@@ -91,7 +91,7 @@ std::vector<std::tuple<QString, int>> get_camera_names()
pSysDevEnum->Release();
#endif
-#ifdef __linux
+#ifdef __linux__
for (int i = 0; i < 16; i++) {
char buf[32];
snprintf(buf, sizeof(buf), "/dev/video%d", i);