mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-09 13:41:59 -04:00
common.h: only include alloca.h if C89 or NuttX
This commit is contained in:
parent
67fc381198
commit
ee23f92151
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ extern "C" {
|
|||
# include <malloc.h>
|
||||
# define z_alloca(nmemb) _alloca(nmemb)
|
||||
#else
|
||||
# if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)) /* BSD */
|
||||
# if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199000L) || defined(__NuttX__) /* C89 or NuttX RTOS */
|
||||
# include <alloca.h>
|
||||
# endif
|
||||
# define z_alloca(nmemb) alloca(nmemb)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue