From 548a201b93797b269eea1a6c5a17dea986516127 Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Tue, 16 Apr 2024 15:29:59 +0200 Subject: [PATCH] build: add missing ifdef MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The thorvg_lottie.h file wasn’t accessible if the lottie loader was not activated, causing a compilation error. --- src/bindings/capi/tvgCapi.cpp | 4 +++- test/testLottie.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bindings/capi/tvgCapi.cpp b/src/bindings/capi/tvgCapi.cpp index 9818b2ca..8aca4294 100644 --- a/src/bindings/capi/tvgCapi.cpp +++ b/src/bindings/capi/tvgCapi.cpp @@ -23,8 +23,10 @@ #include "config.h" #include #include -#include #include "thorvg_capi.h" +#ifdef THORVG_LOTTIE_LOADER_SUPPORT +#include +#endif using namespace std; using namespace tvg; diff --git a/test/testLottie.cpp b/test/testLottie.cpp index 08c1a301..81586826 100644 --- a/test/testLottie.cpp +++ b/test/testLottie.cpp @@ -20,11 +20,13 @@ * SOFTWARE. */ +#include "config.h" #include +#ifdef THORVG_LOTTIE_LOADER_SUPPORT #include +#endif #include #include -#include "config.h" #include "catch.hpp" using namespace tvg;