Skip to content

Commit 7f0426d

Browse files
dmolikfranckverrot
authored andcommitted
Add macros to compile with libgit2-1.0.0
1 parent e957a7f commit 7f0426d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git_fdw.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ static void gitBeginForeignScan(ForeignScanState *node, int eflags)
448448
GIT_DIRECTION_FETCH,
449449
&callbacks,
450450
NULL
451-
#if LIBGIT2_VER_MINOR > 24
451+
#if LIBGIT2_VER_MINOR > 24 || LIBGIT2_VER_MAJOR >= 1
452452
,
453453
NULL
454454
#endif
@@ -869,7 +869,7 @@ int walkRepository(const char *path,
869869
GIT_DIRECTION_FETCH,
870870
&callbacks,
871871
NULL
872-
#if LIBGIT2_VER_MINOR > 24
872+
#if LIBGIT2_VER_MINOR > 24 || LIBGIT2_VER_MAJOR >= 1
873873
,
874874
NULL
875875
#endif
@@ -932,4 +932,4 @@ int walkRepository(const char *path,
932932
}
933933
}
934934
return 0;
935-
}
935+
}

0 commit comments

Comments
 (0)