[release-1.0] Relax libgit2 minor version check (#696) #697

Merged
nmeum merged 3 commits from release-1.0-version-check into release-1.0 2020-11-29 18:33:37 -06:00
3 changed files with 6 additions and 6 deletions
Showing only changes of commit a5560b09f2 - Show all commits

View File

@ -9,8 +9,8 @@ package git
#cgo CFLAGS: -DLIBGIT2_STATIC #cgo CFLAGS: -DLIBGIT2_STATIC
#include <git2.h> #include <git2.h>
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 #if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 1
# error "Invalid libgit2 version; this git2go supports libgit2 >= v1.0" # error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.1.0".
#endif #endif
*/ */
import "C" import "C"

View File

@ -7,8 +7,8 @@ package git
#cgo CFLAGS: -DLIBGIT2_DYNAMIC #cgo CFLAGS: -DLIBGIT2_DYNAMIC
#include <git2.h> #include <git2.h>
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 #if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 1
# error "Invalid libgit2 version; this git2go supports libgit2 >= v1.0" # error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.1.0".
#endif #endif
*/ */
import "C" import "C"

View File

@ -7,8 +7,8 @@ package git
#cgo CFLAGS: -DLIBGIT2_STATIC #cgo CFLAGS: -DLIBGIT2_STATIC
#include <git2.h> #include <git2.h>
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 #if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 1
# error "Invalid libgit2 version; this git2go supports libgit2 >= v1.0" # error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.1.0".
#endif #endif
*/ */
import "C" import "C"