mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-10 22:51:58 +00:00
Fix on FreeBSD
Fix compile errors on FreeBSD. - alloca is defined in stdlib.h on [freeBSD](https://www.freebsd.org/cgi/man.cgi?alloca) Issue in [godot](https://cirrus-ci.com/task/5485473287110656?logs=build#L657)
This commit is contained in:
parent
8ef075eb27
commit
75c1314ab0
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#elif __FreeBSD__
|
||||||
|
#include<stdlib.h>
|
||||||
#else
|
#else
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue