mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
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:
parent
54eedd4bb6
commit
51eec98aae
2 changed files with 6 additions and 2 deletions
|
@ -23,8 +23,10 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <thorvg.h>
|
#include <thorvg.h>
|
||||||
#include <thorvg_lottie.h>
|
|
||||||
#include "thorvg_capi.h"
|
#include "thorvg_capi.h"
|
||||||
|
#ifdef THORVG_LOTTIE_LOADER_SUPPORT
|
||||||
|
#include <thorvg_lottie.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace tvg;
|
using namespace tvg;
|
||||||
|
|
|
@ -20,11 +20,13 @@
|
||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#include <thorvg.h>
|
#include <thorvg.h>
|
||||||
|
#ifdef THORVG_LOTTIE_LOADER_SUPPORT
|
||||||
#include <thorvg_lottie.h>
|
#include <thorvg_lottie.h>
|
||||||
|
#endif
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "config.h"
|
|
||||||
#include "catch.hpp"
|
#include "catch.hpp"
|
||||||
|
|
||||||
using namespace tvg;
|
using namespace tvg;
|
||||||
|
|
Loading…
Add table
Reference in a new issue