summaryrefslogtreecommitdiff
path: root/ext/opencv/gsttemplatematch.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opencv/gsttemplatematch.h')
-rw-r--r--ext/opencv/gsttemplatematch.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/opencv/gsttemplatematch.h b/ext/opencv/gsttemplatematch.h
index 7b4b38852..8d99f982e 100644
--- a/ext/opencv/gsttemplatematch.h
+++ b/ext/opencv/gsttemplatematch.h
@@ -48,7 +48,12 @@
#include <gst/gst.h>
#include <cv.h>
-#include <highgui.h>
+#ifdef HAVE_HIGHGUI_H
+#include <highgui.h> // includes highGUI definitions
+#endif
+#ifdef HAVE_OPENCV2_HIGHGUI_HIGHGUI_C_H
+#include <opencv2/highgui/highgui_c.h> // includes highGUI definitions
+#endif
G_BEGIN_DECLS
/* #defines don't like whitespacey bits */