Fix on FreeBSD 83/289483/1
authormundusnine <mundusnine@gmail.com>
Thu, 12 May 2022 16:28:21 +0000 (12:28 -0400)
committerPatryk Kaczmarek <patryk.k@partner.samsung.com>
Thu, 9 Mar 2023 00:36:33 +0000 (01:36 +0100)
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)

Change-Id: I074c7cfedb798f4d033e562309498f1b701860be

src/loaders/svg/tvgXmlParser.cpp

index cee97af..c373da2 100644 (file)
@@ -26,6 +26,8 @@
 
 #ifdef _WIN32
     #include <malloc.h>
+#elif __FreeBSD__
+    #include<stdlib.h>
 #else
     #include <alloca.h>
 #endif