From 5389005d9376e3155721a90f34612b5ca618c98d Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sat, 11 Aug 2012 18:14:07 -0700 Subject: [PATCH] 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. --- include/git2/attr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.