Compile fixes if OpenMP is not available

This commit is contained in:
Dennis Luxen
2011-11-03 10:53:40 -05:00
parent 5274af7730
commit 3fcabb642e
4 changed files with 13 additions and 0 deletions
+4
View File
@@ -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>