summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorkelly.leahy <kelly.leahy>2011-05-09 23:39:32 -0700
committerkelly.leahy <kelly.leahy>2011-05-09 23:39:32 -0700
commitab86f159e5edbf0ffaf3ec2eb86584a6758a7a49 (patch)
tree2f4c056b0d5e111f2354f95a8c22dcbf1ae10f15 /include/git2/common.h
parent5711ca93d13b74767788c0d7d68fb948e0f9e170 (diff)
downloadlibgit2-ab86f159e5edbf0ffaf3ec2eb86584a6758a7a49.tar.gz
Fix issue #79 - git_lasterror() isn't appearing in git2.dll in windows.
The GIT_EXPORT macro is used to declare a function to be externally accessible to other libraries. This commit uses GIT_EXPORT to declare the git_lasterror() function as externally exported. I verified with depends.exe that the function is available to external callers (i.e. in the exports table of the PE file).
Diffstat (limited to 'include/git2/common.h')
-rw-r--r--include/git2/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index 2aae648fb..54af72fbf 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -185,6 +185,8 @@ typedef struct {
GIT_EXTERN(void) git_strarray_free(git_strarray *array);
+GIT_EXTERN(const char*) git_lasterror(void);
+
/** @} */
GIT_END_DECL
#endif