From 51eec98aae99ec191f81fad0d6be6d23a6dcdb38 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 c00b811c..babac60e 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 f8256d0e..873183ca 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;