diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-08-23 18:14:27 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-25 10:43:22 -0700 |
commit | a45c5f1acf728d28449f00d6ed37d9449c9e0ee1 (patch) | |
tree | 8f82bfddf2bad15aea2950340d694e1cf75fe088 | |
parent | 471af6c2fd63fa6139682aade26aa5039df911c0 (diff) | |
download | subsurface-a45c5f1acf728d28449f00d6ed37d9449c9e0ee1.tar.gz |
When building against libgit2 v0.23 or newer we can assume API23
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | git-access.c | 2 | ||||
-rw-r--r-- | save-git.c | 2 |
2 files changed, 2 insertions, 2 deletions
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 diff --git a/save-git.c b/save-git.c index 3cd8a8a2c..9e6819322 100644 --- a/save-git.c +++ b/save-git.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) #define git_reference_set_target(out, ref, id, author, log_message) \ |