Commit 738715eb by Vicent Martí

Merge pull request #337 from belkiss/development

Modify struct definition to enable forward declare with C++ compiler, thus avoid including C library's header in C++ header.
parents f630366f ac2351fd
...@@ -48,10 +48,11 @@ GIT_BEGIN_DECL ...@@ -48,10 +48,11 @@ GIT_BEGIN_DECL
#define GIT_OID_MINPREFIXLEN 4 #define GIT_OID_MINPREFIXLEN 4
/** Unique identity of any object (commit, tree, blob, tag). */ /** Unique identity of any object (commit, tree, blob, tag). */
typedef struct { typedef struct _git_oid git_oid;
struct _git_oid {
/** raw binary formatted id */ /** raw binary formatted id */
unsigned char id[GIT_OID_RAWSZ]; unsigned char id[GIT_OID_RAWSZ];
} git_oid; };
/** /**
* Parse a hex formatted object id into a git_oid. * Parse a hex formatted object id into a git_oid.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment