summaryrefslogtreecommitdiff
path: root/community/gmic/opencv-buildfix.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-10-06 23:14:37 +0000
committerroot <root@rshg054.dnsready.net>2011-10-06 23:14:37 +0000
commit5442e9b8f357932ed5d6cb46e90fcbf6f453469f (patch)
treee2393e2f381e2e539810e51c34e56c8f687c153c /community/gmic/opencv-buildfix.patch
parent068f1f30c0bba25b6b88cefbe982a72535fa1951 (diff)
Thu Oct 6 23:14:37 UTC 2011
Diffstat (limited to 'community/gmic/opencv-buildfix.patch')
-rw-r--r--community/gmic/opencv-buildfix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/gmic/opencv-buildfix.patch b/community/gmic/opencv-buildfix.patch
new file mode 100644
index 000000000..7fda2ea54
--- /dev/null
+++ b/community/gmic/opencv-buildfix.patch
@@ -0,0 +1,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
+