From e4ca7118f3f5ceb565dff6d083f73812065b88c6 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 11 Apr 2012 13:08:17 +0000 Subject: [PATCH] #1782 Threading optimization of OpenNI wrapper is disabled for TBB < 3.0 --- modules/highgui/src/cap_openni.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/highgui/src/cap_openni.cpp b/modules/highgui/src/cap_openni.cpp index 46df5ce..3cc367a 100644 --- a/modules/highgui/src/cap_openni.cpp +++ b/modules/highgui/src/cap_openni.cpp @@ -44,6 +44,10 @@ #ifdef HAVE_OPENNI +#if TBB_INTERFACE_VERSION < 5000 +# undef HAVE_TBB +#endif + #include #include #include "XnCppWrapper.h" -- 2.7.4