--- /dev/null
+--- opencv-4.5.1/modules/core/include/opencv2/core/cvdef.h~ 2020-12-21 21:01:38.000000000 +0100
++++ opencv-4.5.1/modules/core/include/opencv2/core/cvdef.h 2021-03-07 19:39:51.440476065 +0100
+@@ -719,6 +719,7 @@
+ /****************************************************************************************\
+ * C++ 11 *
+ \****************************************************************************************/
++#ifdef __cplusplus
+ #ifndef CV_CXX11
+ # if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
+ # define CV_CXX11 1
+@@ -760,6 +761,7 @@
+ #ifndef CV_CONSTEXPR
+ # define CV_CONSTEXPR
+ #endif
++#endif
+
+ // Integer types portatibility
+ #ifdef OPENCV_STDINT_HEADER
Summary(pl.UTF-8): Biblioteka funkcji do grafiki komputerowej w czasie rzeczywistym
Name: opencv
Version: 4.5.1
-Release: 2
+Release: 3
Epoch: 1
%if %{with unicap} || %{with xine}
License: GPL (enforced by used libraries), BSD (opencv itself)
Patch0: %{name}-ximea.patch
Patch1: python-install.patch
Patch2: pkgconfig-paths.patch
+Patch3: no-cxx-in-c-header.patch
URL: http://www.opencv.org/
%{?with_pvapi:BuildRequires: AVT_GigE_SDK-devel}
%{?with_opencl:BuildRequires: OpenCL-devel}
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
cache_file() {
f="$1"