From 4a997873485a6be4b511ea11241ec0349c8410fc Mon Sep 17 00:00:00 2001 From: aquileia Date: Wed, 18 Jun 2014 03:17:06 +0200 Subject: [PATCH] Fix OpenMP compilation Delete a #pragma that tries to paralellize a BOOST_FOREACH loop. This doesn't work as boost inserts lines before the for, thus hindering the compiler to find the 'for'. --- src/display.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/display.cpp b/src/display.cpp index ec6f1c905484..a6518148acc7 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -3068,9 +3068,6 @@ void display::invalidate_animations() bool new_inval; do { new_inval = false; -#ifdef _OPENMP -#pragma omp parallel for reduction(|:new_inval) shared(unit_list) schedule(guided) -#endif //_OPENMP BOOST_FOREACH(const unit & u, dc_->units()) { new_inval |= u.anim_comp().invalidate(*this); }