From a45c5f1acf728d28449f00d6ed37d9449c9e0ee1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 23 Aug 2015 18:14:27 -0700 Subject: When building against libgit2 v0.23 or newer we can assume API23 Signed-off-by: Dirk Hohndel --- git-access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-access.c') diff --git a/git-access.c b/git-access.c index 2b44cb6b3..b98b373a1 100644 --- a/git-access.c +++ b/git-access.c @@ -40,7 +40,7 @@ /* * api break introduced in libgit2 master after 0.22 - let's guess this is the v0.23 API */ -#if USE_LIBGIT23_API +#if USE_LIBGIT23_API || (!LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR >= 23) #define git_branch_create(out, repo, branch_name, target, force, signature, log_message) \ git_branch_create(out, repo, branch_name, target, force) #endif -- cgit v1.2.3-70-g09d2