diff --git a/gcore/gdal_minmax_element.hpp b/gcore/gdal_minmax_element.hpp index 62b3dee7e9da..e3227ae5b15e 100644 --- a/gcore/gdal_minmax_element.hpp +++ b/gcore/gdal_minmax_element.hpp @@ -33,14 +33,18 @@ #error "Please define the GDAL_MINMAXELT_NS macro to define the namespace" #endif +#ifdef USE_NEON_OPTIMIZATIONS +#include "include_sse2neon.h" +#define GDAL_MINMAX_ELEMENT_USE_SSE2 +#else #if defined(__x86_64) || defined(_M_X64) #define GDAL_MINMAX_ELEMENT_USE_SSE2 #endif - #ifdef GDAL_MINMAX_ELEMENT_USE_SSE2 // SSE2 header #include #endif +#endif #include "gdal_priv_templates.hpp" #if GDAL_VERSION < GDAL_COMPUTE_VERSION(3, 10, 0)