Skip to content

Commit

Permalink
xdelta support on macos/ios/tvos (#15964)
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven authored Nov 30, 2023
1 parent fd04c8c commit d657e5b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions griffin/griffin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions pkg/apple/BaseConfig.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions pkg/apple/RetroArch_iOS13.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2106,6 +2106,7 @@
"-DHAVE_UPDATE_ASSETS",
"-DHAVE_UPDATE_CORE_INFO",
"-DHAVE_VIDEO_FILTER",
"-DHAVE_XDELTA",
"-DHAVE_XMB",
"-DHAVE_ZLIB",
"-DINLINE=inline",
Expand Down Expand Up @@ -2223,6 +2224,7 @@
"-DHAVE_UPDATE_ASSETS",
"-DHAVE_UPDATE_CORE_INFO",
"-DHAVE_VIDEO_FILTER",
"-DHAVE_XDELTA",
"-DHAVE_XMB",
"-DHAVE_ZLIB",
"-DINLINE=inline",
Expand Down

0 comments on commit d657e5b

Please sign in to comment.