From: Jan Rękorajski Date: Sun, 29 Apr 2018 22:24:06 +0000 (+0200) Subject: - one more c vs c++ fix X-Git-Tag: auto/th/opencv-3.4.1-3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fopencv.git;a=commitdiff_plain;h=1c08bb6 - one more c vs c++ fix - rel 3 --- diff --git a/cplusplus.patch b/cplusplus.patch index eb57b95..ccac14e 100644 --- a/cplusplus.patch +++ b/cplusplus.patch @@ -26,3 +26,17 @@ #endif #endif +--- opencv-3.4.1/modules/highgui/include/opencv2/highgui/highgui_c.h~ 2018-02-23 09:38:33.000000000 +0100 ++++ opencv-3.4.1/modules/highgui/include/opencv2/highgui/highgui_c.h 2018-04-30 00:00:01.659113349 +0200 +@@ -136,7 +136,11 @@ + CVAPI(double) cvGetWindowProperty(const char* name, int prop_id); + + /* Get window image rectangle coordinates, width and height */ ++#ifdef __cplusplus + CVAPI(cv::Rect)cvGetWindowImageRect(const char* name); ++#else ++CVAPI(CvRect)cvGetWindowImageRect(const char* name); ++#endif + + /* display image within window (highgui windows remember their content) */ + CVAPI(void) cvShowImage( const char* name, const CvArr* image ); diff --git a/opencv.spec b/opencv.spec index bf2e474..60a8529 100644 --- a/opencv.spec +++ b/opencv.spec @@ -60,7 +60,7 @@ Summary: A library of programming functions mainly aimed at real time computer v Summary(pl.UTF-8): Biblioteka funkcji do grafiki komputerowej w czasie rzeczywistym Name: opencv Version: 3.4.1 -Release: 2 +Release: 3 Epoch: 1 %if %{with unicap} || %{with xine} License: GPL (enforced by used libraries), BSD (opencv itself)