Add version check to C code
This commit is contained in:
@@ -32,6 +32,10 @@
|
|||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include <git2.h>
|
#include <git2.h>
|
||||||
|
|
||||||
|
#if !(LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR == 20)
|
||||||
|
#error You need a compatible libgit2 version (v0.20.x)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Python objects
|
* Python objects
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user