diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-06-04 21:20:31 +0400 |
---|---|---|
committer | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-06-07 22:45:12 +0400 |
commit | d03f567593f346a1ca96a57f8191def098d126e3 (patch) | |
tree | 8a3653350f78e3e8e91f2e14747d6dca4b435d8a /src/hash.c | |
parent | bc874e116fb4e785081344c2ae39aed3bd072288 (diff) |
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>
Diffstat (limited to 'src/hash.c')
-rw-r--r-- | src/hash.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c index 1ddf7a3bc..775e4b4c1 100644 --- a/src/hash.c +++ b/src/hash.c @@ -25,7 +25,14 @@ #include "common.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 { SHA_CTX c; |