Add version check to C code

This commit is contained in:
Daniel Bruce
2014-04-29 12:38:30 +02:00
parent 9d6b15786f
commit 1fbe52c0f7

View File

@@ -32,6 +32,10 @@
#include <Python.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
*