Commit f2105419 authored by Vladislav Sovrasov's avatar Vladislav Sovrasov

objdetect: fix wrong cxx11 features check

parent 2ac57a2b
...@@ -44,9 +44,11 @@ ...@@ -44,9 +44,11 @@
#ifndef OPENCV_OBJDETECT_DBT_HPP #ifndef OPENCV_OBJDETECT_DBT_HPP
#define OPENCV_OBJDETECT_DBT_HPP #define OPENCV_OBJDETECT_DBT_HPP
#include <opencv2/core.hpp>
// After this condition removal update blacklist for bindings: modules/python/common.cmake // After this condition removal update blacklist for bindings: modules/python/common.cmake
#if defined(__linux__) || defined(LINUX) || defined(__APPLE__) || defined(__ANDROID__) || \ #if defined(__linux__) || defined(LINUX) || defined(__APPLE__) || defined(__ANDROID__) || \
(defined(__cplusplus) && __cplusplus > 199711L) || (defined(_MSC_VER) && _MSC_VER >= 1700) defined(CV_CXX11)
#include <vector> #include <vector>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#include "precomp.hpp" #include "precomp.hpp"
#include <cassert> #include <cassert>
#if (defined(__cplusplus) && __cplusplus > 199711L) || (defined(_MSC_VER) && _MSC_VER >= 1700) #ifdef CV_CXX11
#define USE_STD_THREADS #define USE_STD_THREADS
#endif #endif
...@@ -56,9 +56,9 @@ ...@@ -56,9 +56,9 @@
#include <thread> #include <thread>
#include <mutex> #include <mutex>
#include <condition_variable> #include <condition_variable>
#else #else //USE_STD_THREADS
#include <pthread.h> #include <pthread.h>
#endif #endif //USE_STD_THREADS
#if defined(DEBUG) || defined(_DEBUG) #if defined(DEBUG) || defined(_DEBUG)
#undef DEBUGLOGS #undef DEBUGLOGS
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
#define LOGI0(_str, ...) (printf(_str , ## __VA_ARGS__), printf("\n"), fflush(stdout)) #define LOGI0(_str, ...) (printf(_str , ## __VA_ARGS__), printf("\n"), fflush(stdout))
#define LOGW0(_str, ...) (printf(_str , ## __VA_ARGS__), printf("\n"), fflush(stdout)) #define LOGW0(_str, ...) (printf(_str , ## __VA_ARGS__), printf("\n"), fflush(stdout))
#define LOGE0(_str, ...) (printf(_str , ## __VA_ARGS__), printf("\n"), fflush(stdout)) #define LOGE0(_str, ...) (printf(_str , ## __VA_ARGS__), printf("\n"), fflush(stdout))
#endif #endif //__ANDROID__
#if DEBUGLOGS #if DEBUGLOGS
#define LOGD(_str, ...) LOGD0(_str , ## __VA_ARGS__) #define LOGD(_str, ...) LOGD0(_str , ## __VA_ARGS__)
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
#define LOGI(...) #define LOGI(...)
#define LOGW(...) #define LOGW(...)
#define LOGE(...) #define LOGE(...)
#endif #endif //DEBUGLOGS
using namespace cv; using namespace cv;
...@@ -1035,4 +1035,4 @@ const cv::DetectionBasedTracker::Parameters& DetectionBasedTracker::getParameter ...@@ -1035,4 +1035,4 @@ const cv::DetectionBasedTracker::Parameters& DetectionBasedTracker::getParameter
return parameters; return parameters;
} }
#endif #endif //defined(__linux__) || defined(LINUX) || defined(__APPLE__) || defined(__ANDROID__) || defined(USE_STD_THREADS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment