Move OpenMP stubs to a header
This commit is contained in:
+2
-8
@@ -21,17 +21,11 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
#include <iostream>
|
||||
#include <signal.h>
|
||||
|
||||
#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>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include "openmp.h"
|
||||
|
||||
#include "Server/ServerConfiguration.h"
|
||||
#include "Server/ServerFactory.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user