summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlhchavez <lhchavez@lhchavez.com>2021-09-04 18:01:10 -0700
committerlhchavez <lhchavez@lhchavez.com>2021-09-04 18:02:17 -0700
commit62ee779ea4cdd877419571442860a0d29896a59c (patch)
tree35bfdfe50fa0e4b6b36ca740243a23fa9eeaf0eb
parenta88fdda676b5f58f0ccec69a67f32d710d4676e8 (diff)
downloadlibgit2-62ee779ea4cdd877419571442860a0d29896a59c.tar.gz
remote: Mark `git_remote_name_is_valid` as `GIT_EXTERN`
This change makes `git_remote_name_is_valid` be part of the public interface of the library. This is needed for other language bindings to be able to find this symbol (like in git2go, when linking against libgit2 dynamically).
-rw-r--r--include/git2/remote.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 1f52fcd94..51a7d1cdc 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -971,7 +971,7 @@ GIT_EXTERN(int) git_remote_rename(
* @param remote_name name to be checked.
* @return 0 on success or an error code
*/
-int git_remote_name_is_valid(int *valid, const char *remote_name);
+GIT_EXTERN(int) git_remote_name_is_valid(int *valid, const char *remote_name);
/**
* Delete an existing persisted remote.