xref: /linux/tools/include/nolibc/alloca.h (revision 0eaed89c18aeedf0898baf2dbf5ff027c6795152)
1*80e5de85SThomas Weißschuh /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
2*80e5de85SThomas Weißschuh /*
3*80e5de85SThomas Weißschuh  * alloca() for NOLIBC
4*80e5de85SThomas Weißschuh  * Copyright (C) 2026 Thomas Weißschuh <linux@weissschuh.net>
5*80e5de85SThomas Weißschuh  */
6*80e5de85SThomas Weißschuh 
7*80e5de85SThomas Weißschuh /* make sure to include all global symbols */
8*80e5de85SThomas Weißschuh #include "nolibc.h"
9*80e5de85SThomas Weißschuh 
10*80e5de85SThomas Weißschuh #ifndef _NOLIBC_ALLOCA_H
11*80e5de85SThomas Weißschuh #define _NOLIBC_ALLOCA_H
12*80e5de85SThomas Weißschuh 
13*80e5de85SThomas Weißschuh #define alloca(size) __builtin_alloca(size)
14*80e5de85SThomas Weißschuh 
15*80e5de85SThomas Weißschuh #endif /* _NOLIBC_ALLOCA_H */
16