summaryrefslogtreecommitdiff
path: root/src/git/tree.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-08-14 20:35:10 +0200
committerVicent Marti <tanoku@gmail.com>2010-09-09 00:48:09 +0300
commit370ce56910b9e506b22c7b673ef630a046b90126 (patch)
tree35009bd2afa6301ee19a78b9587e323a4e2c708d /src/git/tree.h
parent9c9f4fc11c85d621dc5fdcf46bbcb5b5da9ed73f (diff)
downloadlibgit2-370ce56910b9e506b22c7b673ef630a046b90126.tar.gz
Fix: do not export custom types in the extern API
Some compilers give linking problems when exporting 'uint32_t' as a return type in the external API. Use generic types instead. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git/tree.h')
-rw-r--r--src/git/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git/tree.h b/src/git/tree.h
index bd589ea11..fcc38d5e0 100644
--- a/src/git/tree.h
+++ b/src/git/tree.h
@@ -68,7 +68,7 @@ GIT_EXTERN(const git_tree_entry *) git_tree_entry_byindex(git_tree *tree, int id
* @param entry a tree entry
* @return attributes as an integer
*/
-GIT_EXTERN(uint32_t) git_tree_entry_attributes(const git_tree_entry *entry);
+GIT_EXTERN(unsigned int) git_tree_entry_attributes(const git_tree_entry *entry);
/**
* Get the filename of a tree entry