mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 20:15:24 +08:00
* libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
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.
This commit is contained in:
parent
7a90b1ef80
commit
d7ca37e413
@ -1,3 +1,11 @@
|
|||||||
|
2001-11-12 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
|
* libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
|
||||||
|
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.
|
||||||
|
|
||||||
2001-11-12 Anthony Green <green@redhat.com>
|
2001-11-12 Anthony Green <green@redhat.com>
|
||||||
|
|
||||||
* libc/sys/arm/crt0.S (__stack_base__): New symbol.
|
* libc/sys/arm/crt0.S (__stack_base__): New symbol.
|
||||||
|
19
newlib/libc/include/alloca.h
Normal file
19
newlib/libc/include/alloca.h
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/* 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
|
@ -18,6 +18,10 @@ extern "C" {
|
|||||||
|
|
||||||
#include <sys/reent.h>
|
#include <sys/reent.h>
|
||||||
|
|
||||||
|
#ifndef __STRICT_ANSI__
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
int quot; /* quotient */
|
int quot; /* quotient */
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
/* libc/sys/linux/include/alloca.h - Allocate memory on stack */
|
|
||||||
|
|
||||||
/* Written 2000 by Werner Almesberger */
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef _NEWLIB_ALLOCA_H
|
|
||||||
#define _NEWLIB_ALLOCA_H
|
|
||||||
|
|
||||||
/* Simple, since we know that we use gcc */
|
|
||||||
|
|
||||||
#define alloca(size) __builtin_alloca(size)
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
x
Reference in New Issue
Block a user