summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/alloca.h
blob: 448233a79e6ee1ab1f0f8406a485a766ea836e0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
/*
 * alloca() for NOLIBC
 * Copyright (C) 2026 Thomas Weißschuh <linux@weissschuh.net>
 */

/* make sure to include all global symbols */
#include "nolibc.h"

#ifndef _NOLIBC_ALLOCA_H
#define _NOLIBC_ALLOCA_H

#define alloca(size) __builtin_alloca(size)

#endif /* _NOLIBC_ALLOCA_H */