pull/32/head
Ilya Lavrenov 13 years ago
parent bb589a590e
commit 077115bd4a
  1. 36
      modules/core/src/parallel.cpp

@ -43,31 +43,29 @@
#include "precomp.hpp" #include "precomp.hpp"
#if !defined HAVE_TBB && !defined HAVE_OPENMP && !defined HAVE_GCD && !defined HAVE_CONCURRENCY #if !defined HAVE_TBB && !defined HAVE_OPENMP && !defined HAVE_GCD && !defined HAVE_CONCURRENCY
#ifdef __APPLE__
#ifdef __APPLE__ //#define HAVE_GDC
#define HAVE_GCD #elif defined _MSC_VER && _MSC_VER >= 1600
#elif defined _MSC_VER && _MSC_VER >= 1600 #define HAVE_CONCURRENCY
#define HAVE_CONCURRENCY #endif
#endif
#endif #endif
#ifdef HAVE_CONCURRENCY #ifdef HAVE_CONCURRENCY
# include <ppl.h> #include <ppl.h>
#elif defined HAVE_OPENMP #elif defined HAVE_OPENMP
# include <omp.h> #include <omp.h>
#elif defined HAVE_GCD #elif defined HAVE_GCD
# include <dispatch/dispatch.h> #include <dispatch/dispatch.h>
#elif defined HAVE_TBB #elif defined HAVE_TBB
# include "tbb/tbb_stddef.h" #include "tbb/tbb_stddef.h"
# if TBB_VERSION_MAJOR*100 + TBB_VERSION_MINOR >= 202 #if TBB_VERSION_MAJOR*100 + TBB_VERSION_MINOR >= 202
# include "tbb/tbb.h" #include "tbb/tbb.h"
# include "tbb/task.h" #include "tbb/task.h"
# undef min #undef min
# undef max #undef max
# else #else
# undef HAVE_TBB #undef HAVE_TBB
# endif // end TBB version #endif // end TBB version
#endif // HAVE_CONCURRENCY #endif // HAVE_CONCURRENCY
/* /*

Loading…
Cancel
Save