mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Another workaround libgit2 API change for supporting older platforms
This commit is contained in:
parent
3c2922f993
commit
98dca3b774
@ -755,8 +755,13 @@ void PROJECT_TREE_PANE::onRight( wxTreeEvent& Event )
|
||||
bool vcs_menu = ADVANCED_CFG::GetCfg().m_EnableGit;
|
||||
|
||||
// Check if the libgit2 library has been successfully initialized
|
||||
#if ( LIBGIT2_VER_MAJOR >= 1 ) || ( LIBGIT2_VER_MINOR >= 99 )
|
||||
int major, minor, rev;
|
||||
bool libgit_init = ( git_libgit2_version( &major, &minor, &rev ) == GIT_OK );
|
||||
#else
|
||||
//Work around libgit2 API change for supporting older platforms
|
||||
bool libgit_init = true;
|
||||
#endif
|
||||
|
||||
vcs_menu &= libgit_init;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user