move __memalign declaration to malloc_impl.h
the malloc-implementation-private header is the only right place for this, because, being in the reserved namespace, __memalign is not interposable and thus not valid to use anywhere else. anything outside of the malloc implementation must call an appropriate-namespace public function (aligned_alloc or posix_memalign).
This commit is contained in:
1 parent
762cf6cdb3
commit
b07a5d6698
3 files changed
+4
-4
No files matched your search
@@ -1,6 +1,5 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
void *__memalign(size_t, size_t);
|
||||
#include "malloc_impl.h"
|
||||
|
||||
void *aligned_alloc(size_t align, size_t len)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user