build: add missing ifdef

The thorvg_lottie.h file wasn’t accessible
if the lottie loader was not activated,
causing a compilation error.
This commit is contained in:
Mira Grudzinska 2024-04-16 15:29:59 +02:00 committed by Jinny You
parent 54eedd4bb6
commit 51eec98aae
2 changed files with 6 additions and 2 deletions

View file

@ -23,8 +23,10 @@
#include "config.h"
#include <string>
#include <thorvg.h>
#include <thorvg_lottie.h>
#include "thorvg_capi.h"
#ifdef THORVG_LOTTIE_LOADER_SUPPORT
#include <thorvg_lottie.h>
#endif
using namespace std;
using namespace tvg;

View file

@ -20,11 +20,13 @@
* SOFTWARE.
*/
#include "config.h"
#include <thorvg.h>
#ifdef THORVG_LOTTIE_LOADER_SUPPORT
#include <thorvg_lottie.h>
#endif
#include <fstream>
#include <cstring>
#include "config.h"
#include "catch.hpp"
using namespace tvg;