Skip to content

Commit

Permalink
Fix OpenMP compilation
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
aquileia committed Jun 19, 2014
1 parent ad7cf13 commit 4a99787
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/display.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4a99787

Please sign in to comment.