xdelta support on macos/ios/tvos (#15964)

This commit is contained in:
Eric Warmenhoven 2023-11-30 06:29:46 -05:00 committed by GitHub
parent fd04c8ca57
commit d657e5b701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View file

@ -1261,6 +1261,20 @@ DATA RUNLOOP
#endif
#ifdef HAVE_PATCH
#include "../tasks/task_patch.c"
#ifdef HAVE_XDELTA
#define adler32(...) xdelta_adler32(__VA_ARGS__)
#include "../deps/xdelta3/xdelta3.c"
#undef adler32
#ifdef Q
#undef Q
#endif
#ifdef W
#undef W
#endif
#ifdef Z
#undef Z
#endif
#endif
#endif
#include "../tasks/task_save.c"
#include "../tasks/task_movie.c"

View file

@ -86,6 +86,7 @@ OTHER_CFLAGS = $(inherited) -DHAVE_UPDATE_CORE_INFO
OTHER_CFLAGS = $(inherited) -DHAVE_VIDEO_FILTER
OTHER_CFLAGS = $(inherited) -DHAVE_VIDEO_LAYOUT
OTHER_CFLAGS = $(inherited) -DHAVE_VULKAN
OTHER_CFLAGS = $(inherited) -DHAVE_XDELTA
OTHER_CFLAGS = $(inherited) -DHAVE_XMB
OTHER_CFLAGS = $(inherited) -DHAVE_ZLIB
OTHER_CFLAGS = $(inherited) -DINLINE=inline

View file

@ -2106,6 +2106,7 @@
"-DHAVE_UPDATE_ASSETS",
"-DHAVE_UPDATE_CORE_INFO",
"-DHAVE_VIDEO_FILTER",
"-DHAVE_XDELTA",
"-DHAVE_XMB",
"-DHAVE_ZLIB",
"-DINLINE=inline",
@ -2223,6 +2224,7 @@
"-DHAVE_UPDATE_ASSETS",
"-DHAVE_UPDATE_CORE_INFO",
"-DHAVE_VIDEO_FILTER",
"-DHAVE_XDELTA",
"-DHAVE_XMB",
"-DHAVE_ZLIB",
"-DINLINE=inline",