Move OpenMP stubs to a header

This commit is contained in:
Emil Tin
2011-11-25 18:42:27 +01:00
parent 37f80e027d
commit a3000019db
4 changed files with 33 additions and 26 deletions
+2 -8
View File
@@ -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"