vendor/libgit2/src/hash/hash_common_crypto.h in rugged-0.27.10.1 vs vendor/libgit2/src/hash/hash_common_crypto.h in rugged-0.28.0

- old
+ new

@@ -16,12 +16,16 @@ CC_SHA1_CTX c; }; #define CC_LONG_MAX ((CC_LONG)-1) -#define git_hash_global_init() 0 #define git_hash_ctx_init(ctx) git_hash_init(ctx) #define git_hash_ctx_cleanup(ctx) + +GIT_INLINE(int) git_hash_global_init(void) +{ + return 0; +} GIT_INLINE(int) git_hash_init(git_hash_ctx *ctx) { assert(ctx); CC_SHA1_Init(&ctx->c);