From 8b14345cf6e06a2938dc7cd8de5e8ca2ec2df039 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 31 May 2020 06:54:33 +0200 Subject: kill the obsolete OS check macro --- compat/camera-names.cpp | 6 +++--- compat/process-list.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'compat') 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 # define NO_DSHOW_STRSAFE # include -#elif defined(__unix) || defined(__linux) || defined(__APPLE__) +#elif defined(__unix) || defined(__linux__) || defined(__APPLE__) # include #endif @@ -15,7 +15,7 @@ # include #endif -#ifdef __linux +#ifdef __linux__ # include # include # include @@ -91,7 +91,7 @@ std::vector> 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 #include -- cgit v1.2.3