From 98611adeb96ad3fc7a9884e41dcc9110ecffd2ff Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Thu, 21 May 2020 20:41:17 +0000 Subject: [PATCH] build: fix warnings about TARGET_OS_MACCATALYST --- modules/videoio/src/cap_avfoundation.mm | 2 +- modules/videoio/src/cap_ios_abstract_camera.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/videoio/src/cap_avfoundation.mm b/modules/videoio/src/cap_avfoundation.mm index 6592341bc3..063e38bb54 100644 --- a/modules/videoio/src/cap_avfoundation.mm +++ b/modules/videoio/src/cap_avfoundation.mm @@ -383,7 +383,7 @@ int CvCaptureCAM::startCaptureDevice(int cameraNum) { [mCaptureDecompressedVideoOutput setVideoSettings:pixelBufferOptions]; mCaptureDecompressedVideoOutput.alwaysDiscardsLateVideoFrames = YES; -#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) && !TARGET_OS_MACCATALYST +#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) && (!defined(TARGET_OS_MACCATALYST) || !TARGET_OS_MACCATALYST) mCaptureDecompressedVideoOutput.minFrameDuration = CMTimeMake(1, 30); #endif diff --git a/modules/videoio/src/cap_ios_abstract_camera.mm b/modules/videoio/src/cap_ios_abstract_camera.mm index 1f698424d8..dd891242ff 100644 --- a/modules/videoio/src/cap_ios_abstract_camera.mm +++ b/modules/videoio/src/cap_ios_abstract_camera.mm @@ -299,7 +299,7 @@ } else { -#if !TARGET_OS_MACCATALYST +#if (!defined(TARGET_OS_MACCATALYST) || !TARGET_OS_MACCATALYST) // Deprecated in 6.0; here for backward compatibility if ([self.captureVideoPreviewLayer isOrientationSupported]) {