summaryrefslogtreecommitdiff
path: root/community/gmic/opencv-buildfix.patch
blob: 7fda2ea544e03307f2aac15200e842824c478d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -wbBur gmic-1.5.0.3.org/src/CImg.h gmic-1.5.0.3/src/CImg.h
--- gmic-1.5.0.3.org/src/CImg.h	2011-09-22 18:37:54.000000000 +0400
+++ gmic-1.5.0.3/src/CImg.h	2011-10-05 18:03:25.000000000 +0400
@@ -234,7 +234,11 @@
 // Using OpenCV is not mandatory.
 #ifdef cimg_use_opencv
 #include <cstddef>
+#undef True
+#undef False
 #include "cv.h"
+#define True 1
+#define False 0
 #include "highgui.h"
 #endif