aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-12-07 21:14:58 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-08 08:47:45 -0800
commit19c75b878cbe0070c56dfa277ba3f9026b9d41b9 (patch)
tree7691bd15c0eb64ba6ec997fb9b68036957655605
parentdd135d0e6c6358d33f1a743acc84cec6041033cc (diff)
downloadsubsurface-19c75b878cbe0070c56dfa277ba3f9026b9d41b9.tar.gz
main.cpp: rework the libgit2 version check
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 7e9a84e5c..fe44cca09 100644
--- a/main.cpp
+++ b/main.cpp
@@ -42,7 +42,7 @@ int main(int argc, char **argv)
files.push_back(a);
}
}
-#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR <= 20 && !defined(USE_LIBGIT21_API)
+#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR < 22
git_threads_init();
#else
git_libgit2_init();