Compile fixes if OpenMP is not available
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user