xref: /haiku/headers/posix/alloca.h (revision d5cd5d63ff0ad395989db6cf4841a64d5b545d1d)
1 #ifndef	_ALLOCA_H
2 #define	_ALLOCA_H
3 /*
4 ** Distributed under the terms of the OpenBeOS License.
5 */
6 
7 
8 #include <sys/types.h>
9 
10 
11 #undef	__alloca
12 #undef	alloca
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 extern void * __alloca (size_t __size);
19 extern void * alloca (size_t __size);
20 
21 #ifdef __cplusplus
22 }
23 #endif
24 
25 #define	__alloca(size)	__builtin_alloca (size)
26 #define alloca(size)	__alloca (size)
27 
28 #endif	/* _ALLOCA_H */
29