diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2020-05-31 06:54:33 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2020-05-31 06:54:33 +0200 |
commit | 8b14345cf6e06a2938dc7cd8de5e8ca2ec2df039 (patch) | |
tree | 93e59691ab2fc2d9c53a74f5f8a7d452dd10195f /compat | |
parent | bc368174cb015f2291cb8dc2f3e2a5782b22cdc8 (diff) |
kill the obsolete OS check macro
Diffstat (limited to 'compat')
-rw-r--r-- | compat/camera-names.cpp | 6 | ||||
-rw-r--r-- | compat/process-list.hpp | 2 |
2 files changed, 4 insertions, 4 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); diff --git a/compat/process-list.hpp b/compat/process-list.hpp index d1f9999f..782dc0a4 100644 --- a/compat/process-list.hpp +++ b/compat/process-list.hpp @@ -129,7 +129,7 @@ static QStringList get_all_executable_names() } } -#elif defined __linux +#elif defined __linux__ #include <proc/readproc.h> #include <cerrno> |