include omp.h only if _OPENMP is defined

This commit is contained in:
Joost 2012-07-06 20:14:27 +02:00 committed by nojhan
commit b01c7ac0f0
2 changed files with 5 additions and 0 deletions

View file

@ -31,7 +31,10 @@
#include <utils/eoLogger.h>
#include <eoFunctor.h>
#include <vector>
#ifdef _OPENMP
#include <omp.h>
#endif
/**
Applies a unary function to a std::vector of things.

View file

@ -25,7 +25,9 @@ Caner Candan <caner.candan@thalesgroup.com>
*/
#ifdef _OPENMP
#include <omp.h>
#endif
#include "eoParallel.h"
#include "eoLogger.h"