1 /* 2 * Copyright 2003-2012 Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _ALLOCA_H 6 #define _ALLOCA_H 7 8 9 #include <sys/types.h> 10 11 12 #undef __alloca 13 #undef alloca 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 extern void * __alloca (size_t __size); 20 extern void * alloca (size_t __size); 21 22 #ifdef __cplusplus 23 } 24 #endif 25 26 #define __alloca(size) __builtin_alloca (size) 27 #define alloca(size) __alloca (size) 28 29 #endif /* _ALLOCA_H */ 30