From 36f048c5e488005da0a9dfba6b617c7c9951c7cf Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 15 Aug 2017 14:04:16 +0200 Subject: sha1dc: build git plumbing code more explicitly The plumbing code between sha1dc and git is defined in sha1dc_git.[ch], but these aren't compiled / included directly but only via the indirect inclusion from sha1dc code. This is slightly confusing when you try to trace the build flow. This patch brings the following changes for simplification: - Make sha1dc_git.c stand-alone and build from Makefile - sha1dc_git.h is the common header to include further sha1.h depending on the build condition - Move comments for plumbing codes from the header to definitions This is also meant as a preliminary work for further plumbing with external sha1dc shlib. Signed-off-by: Takashi Iwai Signed-off-by: Junio C Hamano --- hash.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'hash.h') diff --git a/hash.h b/hash.h index bef3e630a0..024d0d3d50 100644 --- a/hash.h +++ b/hash.h @@ -8,11 +8,7 @@ #elif defined(SHA1_OPENSSL) #include #elif defined(SHA1_DC) -#ifdef DC_SHA1_SUBMODULE -#include "sha1collisiondetection/lib/sha1.h" -#else -#include "sha1dc/sha1.h" -#endif +#include "sha1dc_git.h" #else /* SHA1_BLK */ #include "block-sha1/sha1.h" #endif -- cgit v1.2.3