Skip to content

Commit

Permalink
Add conditional include of omp.h, which is not available on all systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
tskisner committed Jan 25, 2025
1 parent 224b32f commit 63b2a65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/array_ops.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ extern "C" {
}

#include <boost/python.hpp>
#include <omp.h>
#ifdef _OPENMP
# include <omp.h>
#endif // ifdef _OPENMP

#include <gsl/gsl_spline.h>
#include <gsl/gsl_statistics.h>
Expand Down

0 comments on commit 63b2a65

Please sign in to comment.