1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

Merge pull request #25067 from danoli3:master

Update ios_conversions.mm - Fix Mac Catalyst compile target
This commit is contained in:
Alexander Smorkalov
2024-02-26 14:28:10 +03:00
committed by GitHub
+3
View File
@@ -39,6 +39,8 @@
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#include <TargetConditionals.h>
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
#import <UIKit/UIKit.h>
#include "apple_conversions.h"
@@ -61,3 +63,4 @@ void UIImageToMat(const UIImage* image, cv::Mat& m, bool alphaExist) {
CGImageRef imageRef = image.CGImage;
CGImageToMat(imageRef, m, alphaExist);
}
#endif