Browse Source

Fix builds for newer libgit2 (1.8.0 and newer)

revert-0c36e162
Seth Hillbrand 7 months ago
parent
commit
b65ceb60b2
  1. 1
      common/git/kicad_git_common.cpp
  2. 4
      common/git/kicad_git_compat.h

1
common/git/kicad_git_common.cpp

@ -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>

4
common/git/kicad_git_compat.h

@ -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_
Loading…
Cancel
Save