mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-07 15:37:46 +00:00
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>
This commit is contained in:
parent
9c9f4fc11c
commit
370ce56910
@ -68,7 +68,7 @@ GIT_EXTERN(const git_tree_entry *) git_tree_entry_byindex(git_tree *tree, int id
|
|||||||
* @param entry a tree entry
|
* @param entry a tree entry
|
||||||
* @return attributes as an integer
|
* @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
|
* Get the filename of a tree entry
|
||||||
|
@ -50,7 +50,7 @@ git_tree *git_tree_lookup(git_repository *repo, const git_oid *id)
|
|||||||
return (git_tree *)git_repository_lookup(repo, id, GIT_OBJ_TREE);
|
return (git_tree *)git_repository_lookup(repo, id, GIT_OBJ_TREE);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t git_tree_entry_attributes(const git_tree_entry *entry)
|
unsigned int git_tree_entry_attributes(const git_tree_entry *entry)
|
||||||
{
|
{
|
||||||
return entry->attr;
|
return entry->attr;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "repository.h"
|
#include "repository.h"
|
||||||
|
|
||||||
struct git_tree_entry {
|
struct git_tree_entry {
|
||||||
uint32_t attr;
|
unsigned int attr;
|
||||||
char *filename;
|
char *filename;
|
||||||
git_oid oid;
|
git_oid oid;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user