summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/git.go b/git.go
index 45b01d5..ed891e6 100644
--- a/git.go
+++ b/git.go
@@ -4,6 +4,11 @@ package git
#include <git2.h>
#include <git2/sys/openssl.h>
#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 (