From 19c75b878cbe0070c56dfa277ba3f9026b9d41b9 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sun, 7 Dec 2014 21:14:58 +0200 Subject: [PATCH] main.cpp: rework the libgit2 version check Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();