Skip to content

Commit d4a9c73

Browse files
committed
Merge pull request opencv#17345 from alalek:build_fix_mac_warnings
2 parents 17d15df + 98611ad commit d4a9c73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/videoio/src/cap_avfoundation.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ - (IplImage*)getOutput;
383383
[mCaptureDecompressedVideoOutput setVideoSettings:pixelBufferOptions];
384384
mCaptureDecompressedVideoOutput.alwaysDiscardsLateVideoFrames = YES;
385385

386-
#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) && !TARGET_OS_MACCATALYST
386+
#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) && (!defined(TARGET_OS_MACCATALYST) || !TARGET_OS_MACCATALYST)
387387
mCaptureDecompressedVideoOutput.minFrameDuration = CMTimeMake(1, 30);
388388
#endif
389389

modules/videoio/src/cap_ios_abstract_camera.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ - (void)createVideoPreviewLayer;
299299
}
300300
else
301301
{
302-
#if !TARGET_OS_MACCATALYST
302+
#if (!defined(TARGET_OS_MACCATALYST) || !TARGET_OS_MACCATALYST)
303303
// Deprecated in 6.0; here for backward compatibility
304304
if ([self.captureVideoPreviewLayer isOrientationSupported])
305305
{

0 commit comments

Comments
 (0)