mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 22:39:38 +00:00
Remove the sha1.h header file and inline the content into hash.c
Given that the sha1.h header file should never be included into any other file, since it represents an implementation detail of hash.c, we remove the header and inline it's content. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
This commit is contained in:
parent
bc874e116f
commit
d03f567593
@ -25,7 +25,14 @@
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "sha1.h"
|
|
||||||
|
#if defined(PPC_SHA1)
|
||||||
|
# include "ppc/sha1.h"
|
||||||
|
#elif defined(OPENSSL_SHA1)
|
||||||
|
# include <openssl/sha.h>
|
||||||
|
#else
|
||||||
|
# include "block-sha1/sha1.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
struct git_hash_ctx {
|
struct git_hash_ctx {
|
||||||
SHA_CTX c;
|
SHA_CTX c;
|
||||||
|
12
src/sha1.h
12
src/sha1.h
@ -1,12 +0,0 @@
|
|||||||
#ifndef INCLUDE_sha1_h__
|
|
||||||
#define INCLUDE_sha1_h__
|
|
||||||
|
|
||||||
#if defined(PPC_SHA1)
|
|
||||||
# include "ppc/sha1.h"
|
|
||||||
#elif defined(OPENSSL_SHA1)
|
|
||||||
# include <openssl/sha.h>
|
|
||||||
#else
|
|
||||||
# include "block-sha1/sha1.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* INCLUDE_sha1_h__ */
|
|
Loading…
Reference in New Issue
Block a user