modules/emscripten/system/include/libc/alloca.h in webruby-0.1.2 vs modules/emscripten/system/include/libc/alloca.h in webruby-0.2.1

- old
+ new

@@ -1,21 +1,21 @@ -/* libc/include/alloca.h - Allocate memory on stack */ +#ifndef _ALLOCA_H +#define _ALLOCA_H -/* Written 2000 by Werner Almesberger */ -/* Rearranged for general inclusion by stdlib.h. - 2001, Corinna Vinschen <vinschen@redhat.com> */ +#ifdef __cplusplus +extern "C" { +#endif -#ifndef _NEWLIB_ALLOCA_H -#define _NEWLIB_ALLOCA_H +#define __NEED_size_t +#include <bits/alltypes.h> -#include "_ansi.h" -#include <sys/reent.h> +void *alloca(size_t); -#undef alloca - #ifdef __GNUC__ -#define alloca(size) __builtin_alloca(size) -#else -void * _EXFUN(alloca,(size_t)); +#define alloca __builtin_alloca +#endif + +#ifdef __cplusplus +} #endif #endif