diff options
Diffstat (limited to 'Userland/Libraries/LibC/stdlib.h')
-rw-r--r-- | Userland/Libraries/LibC/stdlib.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Userland/Libraries/LibC/stdlib.h b/Userland/Libraries/LibC/stdlib.h index 2b38dc6590..bdf9a56252 100644 --- a/Userland/Libraries/LibC/stdlib.h +++ b/Userland/Libraries/LibC/stdlib.h @@ -101,11 +101,7 @@ int posix_openpt(int flags); int grantpt(int fd); int unlockpt(int fd); -// FIXME: Remove the ifdef once we have a working memalign implementation. -// This is hidden by default until then because many applications prefer -// `posix_memalign` over other implementations of aligned memory. -#ifdef SERENITY_LIBC_SHOW_POSIX_MEMALIGN int posix_memalign(void**, size_t alignment, size_t size); -#endif +__attribute__((malloc, alloc_size(2), alloc_align(1))) void* aligned_alloc(size_t alignment, size_t size); __END_DECLS |