diff --git a/src/dials/algorithms/indexing/fastindex.h b/src/dials/algorithms/indexing/fastindex.h index 5ff5d76897..5a73f969d7 100644 --- a/src/dials/algorithms/indexing/fastindex.h +++ b/src/dials/algorithms/indexing/fastindex.h @@ -1,9 +1,6 @@ #include #include #include -#include -#include -#include #include #include "gemmi/third_party/pocketfft_hdronly.h" #include @@ -13,6 +10,10 @@ #include #include #include +#include + +#define _USE_MATH_DEFINES +#include using namespace pocketfft; @@ -38,7 +39,7 @@ map_centroids_to_reciprocal_space_grid_cpp( } scitbx::vec3 coord; for (int j = 0; j < 3; j++) { - coord[j] = scitbx::math::iround(v[j] * one_over_rlgrid) + half_n_points; + coord[j] = ((int)round(v[j] * one_over_rlgrid)) + half_n_points; } if ((coord.max() >= n_points) || coord.min() < 0) { selection[i] = false; @@ -106,7 +107,7 @@ double angle_between_vectors_degrees(scitbx::vec3 v1, scitbx::vec3