summaryrefslogtreecommitdiff
path: root/Build_system_dynamic.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2021-09-04 20:07:24 -0700
committerGitHub <[email protected]>2021-09-04 20:07:24 -0700
commit549706bb573653469fbcc35c839759987c318d0c (patch)
tree1015f3840025bba474bbfa69be418ea761c079d3 /Build_system_dynamic.go
parent2077003fa5b9689e44a8c8956639f0b424af0d96 (diff)
Declare forward-compatibility with libgit2 v1.2.0 #minor (#800)
We can't yet ship a fully libgit2 v1.2.0-compatible library due to a missing public symbol, but we can allow the v1.1.0-era codebase to link against libgit2 v1.2.0 in the meantime.
Diffstat (limited to 'Build_system_dynamic.go')
-rw-r--r--Build_system_dynamic.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build_system_dynamic.go b/Build_system_dynamic.go
index 3013804..348cdc8 100644
--- a/Build_system_dynamic.go
+++ b/Build_system_dynamic.go
@@ -7,8 +7,8 @@ package git
#cgo CFLAGS: -DLIBGIT2_DYNAMIC
#include <git2.h>
-#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 1
-# error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.1.0"
+#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"
#endif
*/
import "C"