Added support for building against libgit2 v1.9.0 and later

This commit is contained in:
Leon Styhre 2025-01-26 18:44:22 +01:00
parent bec8ca431c
commit 3510a09d83

View file

@ -20,6 +20,12 @@
#define LOCAL_TESTING_FILE false #define LOCAL_TESTING_FILE false
#define DEBUG_CLONING false #define DEBUG_CLONING false
// Someone obviously thought it was a bright idea to change the version macros in libgit2 v1.9.0.
#if defined(LIBGIT2_VERSION_MAJOR)
#define LIBGIT2_VER_MAJOR LIBGIT2_VERSION_MAJOR
#define LIBGIT2_VER_MINOR LIBGIT2_VERSION_MINOR
#endif
GuiThemeDownloader::GuiThemeDownloader(std::function<void()> updateCallback) GuiThemeDownloader::GuiThemeDownloader(std::function<void()> updateCallback)
: mRenderer {Renderer::getInstance()} : mRenderer {Renderer::getInstance()}
, mBackground {":/graphics/frame.svg"} , mBackground {":/graphics/frame.svg"}