From 37f80e027df3ea59931e26e788bdb852c41c8e8e Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Thu, 24 Nov 2011 19:37:49 +0100 Subject: [PATCH] Fix compilation without OpenMP. --- extractor.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/extractor.cpp b/extractor.cpp index 11517362b..f88c4f6ee 100644 --- a/extractor.cpp +++ b/extractor.cpp @@ -17,6 +17,16 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or see http://www.gnu.org/licenses/agpl.txt. */ + +#ifdef _OPENMP +#include +#else +int omp_get_num_procs() { return 1; } +int omp_get_max_threads() { return 1; } +int omp_get_thread_num() { return 0; } +int omp_set_num_threads(int i) {} +#endif + #ifdef STXXL_VERBOSE_LEVEL #undef STXXL_VERBOSE_LEVEL #endif