minix/include/alloca.h
2005-04-21 14:53:53 +00:00

25 lines
418 B
C
Executable file

/* alloca.h - The dreaded alloca() function.
*/
#ifndef _ALLOCA_H
#define _ALLOCA_H
#ifndef _TYPES_H
#include <sys/types.h>
#endif
#if __GNUC__
/* The compiler recognizes this special keyword, and inlines the code. */
#define alloca(size) __builtin_alloca(size)
#endif /* __GCC__ */
#if __ACK__ || __CCC__
_PROTOTYPE(void *alloca, (size_t _size) );
#endif /* __ACK__ || __CCC__ */
#endif /* _ALLOCA_H */