summaryrefslogtreecommitdiffstats
path: root/libraries/opencv/patch_cvdef_h.diff
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/opencv/patch_cvdef_h.diff')
-rw-r--r--libraries/opencv/patch_cvdef_h.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/libraries/opencv/patch_cvdef_h.diff b/libraries/opencv/patch_cvdef_h.diff
new file mode 100644
index 0000000000..463d921b5d
--- /dev/null
+++ b/libraries/opencv/patch_cvdef_h.diff
@@ -0,0 +1,20 @@
+--- opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h.orig 2018-02-28 10:16:45.000320632 +0000
++++ opencv-3.4.1/modules/core/include/opencv2/core/cvdef.h 2018-02-28 10:34:30.852346927 +0000
+@@ -454,6 +454,7 @@ Cv64suf;
+
+
+ // Integer types portatibility
++#if defined __cplusplus
+ #ifdef OPENCV_STDINT_HEADER
+ #include OPENCV_STDINT_HEADER
+ #else
+@@ -494,6 +495,9 @@ typedef ::uint64_t uint64_t;
+ }
+ #endif
+ #endif
++#else
++#include <stdint.h>
++#endif
+
+
+ //! @}