[PATCH v3 3/3] commit-slab: missing definitions and forward declarations (hdr-check)
- From
Carlo Marcelo Arenas Belón <carenas@gmail.com>
- Date
- Oct 25, 2018, 11:04 UTC
- Message-ID
- <20181025110427.13655-4-carenas@gmail.com>
- In-Reply-To
- <20181025110427.13655-1-carenas@gmail.com>
struct commmit needs to be defined before commit-slab can generate working code, object_id should be at least known through a forward declaration
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> --- commit-slab-impl.h | 2 ++ commit-slab.h | 2 ++ 2 files changed, 4 insertions(+)
diff --git a/commit-slab-impl.h b/commit-slab-impl.h index e352c2f8c1..db7cf3f19b 100644 --- a/commit-slab-impl.h +++ b/commit-slab-impl.h @@ -1,6 +1,8 @@ #ifndef COMMIT_SLAB_IMPL_H #define COMMIT_SLAB_IMPL_H +#include "commit.h" + #define implement_static_commit_slab(slabname, elemtype) \ implement_commit_slab(slabname, elemtype, MAYBE_UNUSED static) diff --git a/commit-slab.h b/commit-slab.h index 69bf0c807c..722252de61 100644 --- a/commit-slab.h +++ b/commit-slab.h @@ -1,6 +1,8 @@ #ifndef COMMIT_SLAB_H #define COMMIT_SLAB_H +struct object_id; + #include "commit-slab-decl.h" #include "commit-slab-impl.h"
-- 2.19.1