Skip to content

Commit

Permalink
Add version check to C code
Browse files Browse the repository at this point in the history
  • Loading branch information
ircubic committed Apr 29, 2014
1 parent 9d6b157 commit 1fbe52c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 1fbe52c

Please sign in to comment.