mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-28 05:51:04 +00:00
21 lines
310 B
C
21 lines
310 B
C
|
#ifndef MALLOC_PROVIDED
|
||
|
/* malign.c -- a wrapper for memalign_r. */
|
||
|
|
||
|
#include <_ansi.h>
|
||
|
#include <reent.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <malloc.h>
|
||
|
|
||
|
#ifndef _REENT_ONLY
|
||
|
|
||
|
_PTR
|
||
|
_DEFUN (memalign, (align, nbytes),
|
||
|
size_t align _AND
|
||
|
size_t nbytes)
|
||
|
{
|
||
|
return _memalign_r (_REENT, align, nbytes);
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
#endif
|