mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
fix warning: implicit declaration of function 'alloca'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: Ib79f7cfa9a059a90687683a77e53a3b8f74712fe
This commit is contained in:
parent
defb4587de
commit
62f788ce03
@ -41,9 +41,7 @@
|
|||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
# define z_alloca(nmemb) _alloca(nmemb)
|
# define z_alloca(nmemb) _alloca(nmemb)
|
||||||
#else
|
#else
|
||||||
# if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199000L /* C89 */
|
|
||||||
# include <alloca.h>
|
# include <alloca.h>
|
||||||
# endif
|
|
||||||
# define z_alloca(nmemb) alloca(nmemb)
|
# define z_alloca(nmemb) alloca(nmemb)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user