Error out if we detect an incompatible libgit2 version
The master version supports only v0.24 so let's enforce that via the compiler.
This commit is contained in:
parent
95793ac11d
commit
8eaae73f85
5
git.go
5
git.go
|
@ -4,6 +4,11 @@ package git
|
||||||
#include <git2.h>
|
#include <git2.h>
|
||||||
#include <git2/sys/openssl.h>
|
#include <git2/sys/openssl.h>
|
||||||
#cgo pkg-config: libgit2
|
#cgo pkg-config: libgit2
|
||||||
|
|
||||||
|
#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 24
|
||||||
|
# error "Invalid libgit2 version; this git2go supports libgit2 v0.24"
|
||||||
|
#endif
|
||||||
|
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in New Issue