diff --git a/thirdparty/thorvg/inc/config.h b/thirdparty/thorvg/inc/config.h index 699076fdf1a8..e2a61a9384ac 100644 --- a/thirdparty/thorvg/inc/config.h +++ b/thirdparty/thorvg/inc/config.h @@ -5,7 +5,9 @@ #define THORVG_SVG_LOADER_SUPPORT #define THORVG_PNG_LOADER_SUPPORT #define THORVG_JPG_LOADER_SUPPORT +#ifndef WEB_ENABLED #define THORVG_THREAD_SUPPORT +#endif // Added conditionally if webp module is enabled. //#define THORVG_WEBP_LOADER_SUPPORT diff --git a/thirdparty/thorvg/update-thorvg.sh b/thirdparty/thorvg/update-thorvg.sh index c980b89c4b60..c0034ba888eb 100755 --- a/thirdparty/thorvg/update-thorvg.sh +++ b/thirdparty/thorvg/update-thorvg.sh @@ -38,7 +38,9 @@ cat << EOF > ../inc/config.h #define THORVG_SVG_LOADER_SUPPORT #define THORVG_PNG_LOADER_SUPPORT #define THORVG_JPG_LOADER_SUPPORT +#ifndef WEB_ENABLED #define THORVG_THREAD_SUPPORT +#endif // Added conditionally if webp module is enabled. //#define THORVG_WEBP_LOADER_SUPPORT