7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-04 23:25:30 +00:00

Fix builds for newer libgit2 (1.8.0 and newer)

This commit is contained in:
Seth Hillbrand 2025-03-21 17:03:28 -07:00
parent faf6243d1a
commit b65ceb60b2
2 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include "git_repo_mixin.h"
#include <git/git_progress.h>
#include <kicad_git_compat.h>
#include <kiplatform/secrets.h>
#include <trace_helpers.h>

View File

@ -31,4 +31,8 @@
#define GIT_BUF_INIT { NULL, 0, 0 }
#endif
#if LIBGIT2_VER_MAJOR > 1 || ( LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 8 )
#include <git2/sys/errors.h>
#endif
#endif // KICAD_GIT_COMPAT_H_