diff --git a/modules/core/src/parallel.cpp b/modules/core/src/parallel.cpp index 5a51230ce..1fb980d92 100644 --- a/modules/core/src/parallel.cpp +++ b/modules/core/src/parallel.cpp @@ -56,7 +56,7 @@ #include #if defined ANDROID #include - #else + #elif defined __APPLE__ #include #endif #endif diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index d9a20873f..1f9d68672 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -163,8 +163,6 @@ std::wstring GetTempFileNameWinRT(std::wstring prefix) #include #if defined ANDROID #include -#else -#include #endif #endif diff --git a/modules/videoio/src/cap_ffmpeg_impl.hpp b/modules/videoio/src/cap_ffmpeg_impl.hpp index bd967f963..5870f4bc7 100644 --- a/modules/videoio/src/cap_ffmpeg_impl.hpp +++ b/modules/videoio/src/cap_ffmpeg_impl.hpp @@ -139,8 +139,10 @@ extern "C" { #include #include #include +#if defined __APPLE__ #include #endif +#endif #ifndef MIN #define MIN(a, b) ((a) < (b) ? (a) : (b))