Re: aligned_alloc visibilty

2025-04-12 Thread faceless via Digitalmars-d-learn
On Saturday, 12 April 2025 at 15:32:05 UTC, user1234 wrote: Maybe there's a `version (CRuntime_XXX)` missing for the C lib you are using ? If so that looks like a druntime bug. But as there's not that much libc implementation what is the one you are on, Musl maybe ? Thanks for your respon

Re: aligned_alloc visibilty

2025-04-12 Thread user1234 via Digitalmars-d-learn
On Saturday, 12 April 2025 at 03:22:06 UTC, faceless wrote: What is the purpose of hiding the `aligned_alloc` declaration like this in `core.stdc.stdlib`? ```d 29version (CRuntime_Glibc) 30version = AlignedAllocSupported; 31else version (CRuntime_Newlib) 32version = A

aligned_alloc visibilty

2025-04-11 Thread faceless via Digitalmars-d-learn
What is the purpose of hiding the `aligned_alloc` declaration like this in `core.stdc.stdlib`? ```d 29version (CRuntime_Glibc) 30version = AlignedAllocSupported; 31else version (CRuntime_Newlib) 32version = AlignedAllocSupported; 33else {} ... 184/// since C11