summaryrefslogtreecommitdiff
path: root/thirdparty/thorvg/src/loaders/tvg
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-05-23 18:22:25 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-05-23 19:44:13 +0200
commitfb67a685a934d35fc20303aeda4c527660edcbeb (patch)
treeeed9412eff08cab7e56b9af6b29511a858939b4d /thirdparty/thorvg/src/loaders/tvg
parent3fb1f258bea0ca733af8ac133a686cf63e23069f (diff)
thorvg: Sync a couple fixes from upstream
We're still formally tracking v0.8.1, those fixes don't impact the library features. I didn't bother documenting them with patches as they will likely soon make their way to either a v0.8.2 or v0.9.0.
Diffstat (limited to 'thirdparty/thorvg/src/loaders/tvg')
-rw-r--r--thirdparty/thorvg/src/loaders/tvg/tvgTvgBinInterpreter.cpp2
-rw-r--r--thirdparty/thorvg/src/loaders/tvg/tvgTvgCommon.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/thirdparty/thorvg/src/loaders/tvg/tvgTvgBinInterpreter.cpp b/thirdparty/thorvg/src/loaders/tvg/tvgTvgBinInterpreter.cpp
index 2b85342b2c..66de860aaa 100644
--- a/thirdparty/thorvg/src/loaders/tvg/tvgTvgBinInterpreter.cpp
+++ b/thirdparty/thorvg/src/loaders/tvg/tvgTvgBinInterpreter.cpp
@@ -23,6 +23,8 @@
#ifdef _WIN32
#include <malloc.h>
+#elif defined(__FreeBSD__)
+ #include <stdlib.h>
#else
#include <alloca.h>
#endif
diff --git a/thirdparty/thorvg/src/loaders/tvg/tvgTvgCommon.h b/thirdparty/thorvg/src/loaders/tvg/tvgTvgCommon.h
index 62181605a2..a0762d0fcc 100644
--- a/thirdparty/thorvg/src/loaders/tvg/tvgTvgCommon.h
+++ b/thirdparty/thorvg/src/loaders/tvg/tvgTvgCommon.h
@@ -51,4 +51,4 @@ public:
};
-#endif //_TVG_TVG_COMMON_H_ \ No newline at end of file
+#endif //_TVG_TVG_COMMON_H_