[PATCH] main.cpp: fix broken build for libgit2 0.21

Lubomir I. Ivanov neolit123 at gmail.com
Sat Dec 6 16:15:33 PST 2014


On 7 December 2014 at 00:42, Thiago Macieira <thiago at macieira.org> wrote:
> On Saturday 06 December 2014 15:49:57 Lubomir I. Ivanov wrote:
>> +#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR <= 20 &&
>> !defined(USE_LIBGIT21_API) git_threads_init();
>> +#else
>> +       git_libgit2_init();
>> +#endif
>
> Conditional is broken
>

does it break the build for you?

> The API changed for libgit2 0.22, not in 0.21.
>

odd, can't find such a thing as 0.22 in version.h or in their tags.
is the current master *actual* version hidden in some way, while 0.21
is displayed in both git and the source?

lubomir
--


More information about the subsurface mailing list