Compile fixes if OpenMP is not available
This commit is contained in:
parent
5274af7730
commit
3fcabb642e
@ -35,7 +35,9 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
#include <set>
|
||||
#include <stack>
|
||||
#include <limits>
|
||||
#ifdef _OPEMP
|
||||
#include <omp.h>
|
||||
#endif
|
||||
|
||||
class Contractor {
|
||||
|
||||
|
@ -28,7 +28,9 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
#include <limits>
|
||||
#include <vector>
|
||||
#include <stxxl.h>
|
||||
#ifdef _OPENMP
|
||||
#include <omp.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <math.h>
|
||||
|
@ -38,6 +38,11 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
|
||||
#ifdef _OPENMP
|
||||
#include <omp.h>
|
||||
#else
|
||||
int omp_get_num_procs() { return 1; }
|
||||
int omp_get_max_threads() { return 1; }
|
||||
int omp_get_thread_num() { return 0; }
|
||||
int omp_set_num_threads(int i) {}
|
||||
#endif
|
||||
|
||||
#include "typedefs.h"
|
||||
|
@ -23,6 +23,10 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
|
||||
#ifdef _OPENMP
|
||||
#include <omp.h>
|
||||
#else
|
||||
int omp_get_num_procs() { return 1; }
|
||||
int omp_get_max_threads() { return 1; }
|
||||
int omp_get_thread_num() { return 0; }
|
||||
#endif
|
||||
|
||||
#include <boost/thread.hpp>
|
||||
|
Loading…
Reference in New Issue
Block a user