summaryrefslogtreecommitdiff
path: root/include/git2/attr.h
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2012-08-11 18:14:07 -0700
committerJosh Triplett <josh@joshtriplett.org>2012-08-11 18:14:07 -0700
commit5389005d9376e3155721a90f34612b5ca618c98d (patch)
treeb144d153c98b7d98a7800afa400f460a5cc77325 /include/git2/attr.h
parent738837bdaa258a716edecfc8dcdeb7210d73860b (diff)
downloadlibgit2-5389005d9376e3155721a90f34612b5ca618c98d.tar.gz
Export git_attr_value
Commit 0c9eacf3d2c83256736a5bb2a240e73afd13d55f introduced the function git_attr_value and switched the GIT_ATTR_* macros to use it, but attempting to use that function leads to a linker error (undefined reference to `git_attr_value'). Export git_attr_value so programs can actually call it.
Diffstat (limited to 'include/git2/attr.h')
-rw-r--r--include/git2/attr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/attr.h b/include/git2/attr.h
index d675f7555..2de9f4b0e 100644
--- a/include/git2/attr.h
+++ b/include/git2/attr.h
@@ -96,7 +96,7 @@ typedef enum {
* @param attr The attribute
* @return the value type for the attribute
*/
-git_attr_t git_attr_value(const char *attr);
+GIT_EXTERN(git_attr_t) git_attr_value(const char *attr);
/**
* Check attribute flags: Reading values from index and working directory.