[Github-comments] [geany/geany-plugins] GitChangeBar: Support libgit2 1.4.x (PR #1165)

Enrico Tröger notifications at xxxxx
Sun Feb 20 12:22:23 UTC 2022


@eht16 commented on this pull request.



> @@ -49,6 +49,11 @@
 # define git_buf_dispose  git_buf_free
 # define git_error_last   giterr_last
 #endif
+#if ! defined (LIBGIT2_VER_MINOR) || ( (LIBGIT2_VER_MAJOR == 1) && (LIBGIT2_VER_MINOR < 4) )
+# define gcb_git_buf_reserved asize

Since `asize` and `reserved` are rather generic words, I introduced a prefixed version to avoid accidental name clashes.

Is there a better way?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1165#pullrequestreview-888028389
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/pull/1165/review/888028389 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220220/27b0796b/attachment.htm>


More information about the Github-comments mailing list