diff options
Diffstat (limited to 'Build_bundled_static.go')
| -rw-r--r-- | Build_bundled_static.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Build_bundled_static.go b/Build_bundled_static.go index 85ed739..09ed0f5 100644 --- a/Build_bundled_static.go +++ b/Build_bundled_static.go @@ -1,3 +1,4 @@ +//go:build static && !system_libgit2 // +build static,!system_libgit2 package git @@ -9,8 +10,8 @@ package git #cgo CFLAGS: -DLIBGIT2_STATIC #include <git2.h> -#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 2 -# error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.2.0" +#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 2 || LIBGIT2_VER_MINOR > 2 +# error "Invalid libgit2 version; this git2go supports libgit2 between v1.2.0 and v1.2.0" #endif */ import "C" |
