main.cpp: rework the libgit2 version check

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2014-12-07 21:14:58 +02:00 committed by Dirk Hohndel
parent dd135d0e6c
commit 19c75b878c

View file

@ -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();