]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/math/interpolators/detail/cardinal_trigonometric_detail.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / math / interpolators / detail / cardinal_trigonometric_detail.hpp
index e7b239ad907747108f9721182da9ad278dd0a825..62ef4bacec17bc2821b3e970fe31e0d60367a18e 100644 (file)
@@ -5,15 +5,23 @@
 
 #ifndef BOOST_MATH_INTERPOLATORS_DETAIL_CARDINAL_TRIGONOMETRIC_HPP
 #define BOOST_MATH_INTERPOLATORS_DETAIL_CARDINAL_TRIGONOMETRIC_HPP
+#include <cstddef>
 #include <cmath>
 #include <stdexcept>
-#include <fftw3.h>
 #include <boost/math/constants/constants.hpp>
 
 #ifdef BOOST_HAS_FLOAT128
 #include <quadmath.h>
 #endif
 
+#ifdef __has_include
+#  if __has_include(<fftw3.h>)
+#    include <fftw3.h>
+#  else
+#    error "This feature is unavailable without fftw3 installed"
+#endif
+#endif
+
 namespace boost { namespace math { namespace interpolators { namespace detail {
 
 template<typename Real>