Skip to content

Commit

Permalink
pocketfft_hdronly.h: one more condition for aligned_alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
wojdyr committed Aug 26, 2021
1 parent d73d4d2 commit c4411b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/gemmi/third_party/pocketfft_hdronly.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ template<typename T> class arr
}
static void dealloc(T *ptr)
{ free(ptr); }
// aligned_alloc is missing in many C++17 compilers
#elif __cplusplus >= 201703L && !defined(_LIBCPP_HAS_NO_ALIGNED_ALLOCATION) && \
!defined(__APPLE__) && \
(!defined(__GLIBC_MINOR__) || __GLIBC__-0 != 2 || __GLIBC_MINOR__ >= 16) && \
(!defined(__MINGW32__) || defined(_GLIBCXX_HAVE_ALIGNED_ALLOC))
static T *ralloc(size_t num)
{
Expand Down

0 comments on commit c4411b2

Please sign in to comment.