diff options
author | Jeff King <peff@peff.net> | 2017-03-17 01:08:10 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-17 01:16:45 +0300 |
commit | 45a574eec82424ac11c4c5fe117725597309b9c9 (patch) | |
tree | a3e7618713df7cab69d1be29d9a89c59ee0afefd /sha1dc/sha1.h | |
parent | 28dc98e343ca4eb370a29ceec4c19beac9b5c01e (diff) |
sha1dc: adjust header includes for git
We can replace system includes with git-compat-util.h or
cache.h (and should make sure it is included first in all C
files). And we can drop includes from headers entirely, as
every C file should include git-compat-util.h itself.
We will add in new include guards around the header files,
though (otherwise you get into trouble including both
sha1dc/sha1.h and cache.h).
And finally, we'll use the full "sha1dc/" path for including
related files. This isn't strictly necessary, but makes the
expected resolution more obvious.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1dc/sha1.h')
-rw-r--r-- | sha1dc/sha1.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sha1dc/sha1.h b/sha1dc/sha1.h index 88556179b5..7d4d423b9d 100644 --- a/sha1dc/sha1.h +++ b/sha1dc/sha1.h @@ -4,13 +4,13 @@ * See accompanying file LICENSE.txt or copy at * https://opensource.org/licenses/MIT ***/ +#ifndef SHA1DC_SHA1_H +#define SHA1DC_SHA1_H #if defined(__cplusplus) extern "C" { #endif -#include <stdint.h> - /* uses SHA-1 message expansion to expand the first 16 words of W[] to 80 words */ /* void sha1_message_expansion(uint32_t W[80]); */ @@ -103,3 +103,5 @@ int SHA1DCFinal(unsigned char[20], SHA1_CTX*); #if defined(__cplusplus) } #endif + +#endif /* SHA1DC_SHA1_H */ |