mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 02:09:19 +08:00
d7ca37e413
to here. Rearrange for general inclusion by stdlib.h. * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__ isn't defined. * libc/sys/linux/include/alloca.h: Move to libc/include.
20 lines
405 B
C
20 lines
405 B
C
/* libc/include/alloca.h - Allocate memory on stack */
|
|
|
|
/* Written 2000 by Werner Almesberger */
|
|
/* Rearranged for general inclusion by stdlib.h.
|
|
2001, Corinna Vinschen <vinschen@redhat.com> */
|
|
|
|
#ifndef _NEWLIB_ALLOCA_H
|
|
#define _NEWLIB_ALLOCA_H
|
|
|
|
#include "_ansi.h"
|
|
#include <sys/reent.h>
|
|
|
|
#ifdef __GNUC__
|
|
#define alloca(size) __builtin_alloca(size)
|
|
#else
|
|
void * _EXFUN(alloca,(size_t));
|
|
#endif
|
|
|
|
#endif
|