From b01c7ac0f02d26f1349662fae6d06801a272fccc Mon Sep 17 00:00:00 2001 From: Joost Date: Fri, 6 Jul 2012 20:14:27 +0200 Subject: [PATCH] include omp.h only if _OPENMP is defined --- eo/src/apply.h | 3 +++ eo/src/utils/eoParallel.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/eo/src/apply.h b/eo/src/apply.h index f685f8d3..01256e05 100644 --- a/eo/src/apply.h +++ b/eo/src/apply.h @@ -31,7 +31,10 @@ #include #include #include + +#ifdef _OPENMP #include +#endif /** Applies a unary function to a std::vector of things. diff --git a/eo/src/utils/eoParallel.cpp b/eo/src/utils/eoParallel.cpp index d9d09c38..f8e3c745 100644 --- a/eo/src/utils/eoParallel.cpp +++ b/eo/src/utils/eoParallel.cpp @@ -25,7 +25,9 @@ Caner Candan */ +#ifdef _OPENMP #include +#endif #include "eoParallel.h" #include "eoLogger.h"