]> git.pld-linux.org Git - packages/opencv.git/blobdiff - no-cxx-in-c-header.patch
- fix c/c++ mixed header
[packages/opencv.git] / no-cxx-in-c-header.patch
diff --git a/no-cxx-in-c-header.patch b/no-cxx-in-c-header.patch
new file mode 100644 (file)
index 0000000..930087e
--- /dev/null
@@ -0,0 +1,18 @@
+--- 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
This page took 0.042595 seconds and 4 git commands to generate.