fix warning: implicit declaration of function 'alloca'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ib79f7cfa9a059a90687683a77e53a3b8f74712fe
This commit is contained in:
Xiang Xiao 2022-09-09 05:06:01 +08:00
parent defb4587de
commit 62f788ce03

View File

@ -41,9 +41,7 @@
# include <malloc.h>
# define z_alloca(nmemb) _alloca(nmemb)
#else
# if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199000L /* C89 */
# include <alloca.h>
# endif
# include <alloca.h>
# define z_alloca(nmemb) alloca(nmemb)
#endif