[libcxx-commits] [libcxx] [libcxx] Use `aligned_alloc` for testing instead of `posix_memalign` (PR #101748)
Joseph Huber via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Aug 3 05:05:41 PDT 2024
jhuber6 wrote:
> There is no guarantee that a C library provides `aligned_alloc` before C++17. Is there a reason `posix_memalign` can't be provided?
I could provide it, but I've focusing on the C standard instead of POSIX. I guess if we have test systems that don't have C11 then we'd need to implement it, either that or add another switch to it like the Windows case.
https://github.com/llvm/llvm-project/pull/101748
More information about the libcxx-commits
mailing list