Skip to content
Commit 9568071d authored by Ting-Wei Lan's avatar Ting-Wei Lan
Browse files

egg-simple-label: replace alloca with C99 VLA

alloca is a non-standard feature. As we already requires a compiler
supporting C11, using the standard variable-length array seems to be
better. Although VLA is an optional feature in C11, both gcc and clang
support it for a long time.

This commit fixes the build on FreeBSD, which puts alloca in stdlib.h
instead of alloca.h.

https://bugzilla.gnome.org/show_bug.cgi?id=765441
parent a47dca91
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment