diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-04-14 09:34:37 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-04-15 10:40:08 -0700 |
commit | 44e4e1123668f1e345dc7f5d5a45ef1a16979314 (patch) | |
tree | 726768f5a495c01e03d2a8c2c2e5bbb7353f4ef7 /src | |
parent | 9a05c9c3685ff90677f6adf83d2a40ea608d03fb (diff) |
Fix alloca undefined on Solaris
Solaris defines alloca in the <alloca.h> header
../src/cairo-colr-glyph-render.c: In function ‘add_sweep_gradient_patches’:
../src/cairo-colr-glyph-render.c:661:14: error: implicit declaration of
function ‘alloca’ [-Werror=implicit-function-declaration]
661 | angles = alloca (sizeof (double) * cl->n_stops);
| ^~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-colr-glyph-render.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cairo-colr-glyph-render.c b/src/cairo-colr-glyph-render.c index a9ad84bbf..89e27354b 100644 --- a/src/cairo-colr-glyph-render.c +++ b/src/cairo-colr-glyph-render.c @@ -47,6 +47,10 @@ #include <malloc.h> #endif +#ifdef HAVE_ALLOCA_H +#include <alloca.h> +#endif + #if HAVE_FT_COLR_V1 #include <ft2build.h> |