From f5366e2213c2ebf7ae4cc045383eabd1f262d123 Mon Sep 17 00:00:00 2001 From: Peter Braden Date: Fri, 24 Jul 2015 09:46:09 +0200 Subject: [PATCH] fix some back compat --- src/OpenCV.h | 2 ++ src/init.cc | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/OpenCV.h b/src/OpenCV.h index 23e3bec..beab026 100755 --- a/src/OpenCV.h +++ b/src/OpenCV.h @@ -11,6 +11,8 @@ #include #include #include +#else +#include #endif #include #include diff --git a/src/init.cc b/src/init.cc index 9429a05..5fcb791 100755 --- a/src/init.cc +++ b/src/init.cc @@ -36,11 +36,11 @@ init(Handle target) { StereoGC::Init(target); #endif - #if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4 - BackgroundSubtractorWrap::Init(target); - Features::Init(target); - FaceRecognizerWrap::Init(target); - #endif + #if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4 + BackgroundSubtractorWrap::Init(target); + Features::Init(target); + FaceRecognizerWrap::Init(target); + #endif };