Subject: | seed define collision |
build is broken on openSUSE Leap 42.1
opencv2/core/core.hpp:2086 collides with perl-5.18's CORE/embed.h
that has
#define seed() Perl_seed(aTHX)
Subject: | perl-Cv-seed-fix.patch |
opencv2/core/core.hpp:2086
collides with perl-5.18's CORE/embed.h that has
#define seed() Perl_seed(aTHX)
Index: Cv-0.29/lib/Cv/Cv.inc
===================================================================
--- Cv-0.29.orig/lib/Cv/Cv.inc
+++ Cv-0.29/lib/Cv/Cv.inc
@@ -20,9 +20,10 @@ extern "C" {
#endif /* __Inlin_C */
-/* remove confincting macros */
+/* remove conflicting macros */
#undef do_open
#undef do_close
+#undef seed
#include <opencv/cv.h>
#include <opencv/highgui.h>