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;