diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-01-27 15:23:15 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-02-17 11:41:06 +0100 |
commit | 0d71690549b918d0aafc5873229661a43eee9eed (patch) | |
tree | c23fd84d4b43a0de3aedacefa9f0db1f75e2f86c /src/oidmap.c | |
parent | 659f5d07d50d782d1c2ded8eb7b1f02a32117fd9 (diff) | |
download | libgit2-0d71690549b918d0aafc5873229661a43eee9eed.tar.gz |
oidmap: remove GIT__USE_OIDMAP macro
Diffstat (limited to 'src/oidmap.c')
-rw-r--r-- | src/oidmap.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/oidmap.c b/src/oidmap.c index ab821df8d..0df9a4f42 100644 --- a/src/oidmap.c +++ b/src/oidmap.c @@ -7,6 +7,13 @@ #include "oidmap.h" +GIT_INLINE(khint_t) git_oidmap_hash(const git_oid *oid) +{ + khint_t h; + memcpy(&h, oid, sizeof(khint_t)); + return h; +} + __KHASH_IMPL(oid, static kh_inline, const git_oid *, void *, 1, git_oidmap_hash, git_oid_equal) git_oidmap *git_oidmap_alloc() |