pocketfft.patch 518 B

123456789101112
  1. diff --git a/third_party/pocketfft/pocketfft_hdronly.h b/third_party/pocketfft/pocketfft_hdronly.h
  2. --- a/third_party/pocketfft/pocketfft_hdronly.h
  3. +++ b/third_party/pocketfft/pocketfft_hdronly.h
  4. @@ -149,7 +149,7 @@ template<> struct VLEN<double> { static constexpr size_t val=2; };
  5. #endif
  6. #endif
  7. -#if __cplusplus >= 201703L
  8. +#if defined(__linux__) && __cplusplus >= 201703L
  9. inline void *aligned_alloc(size_t align, size_t size)
  10. {
  11. // aligned_alloc() requires that the requested size is a multiple of "align"