From c07d9c95f2ee277e12dc379c3054411cd3d2958e Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 9 Aug 2012 15:33:04 -0700 Subject: [PATCH] oid: Explicitly include `oid.h` for the inlined CMP --- src/attr.c | 1 + src/cache.c | 1 + src/diff.c | 1 + src/diff_output.c | 1 + src/index.c | 1 + src/odb.c | 1 + src/refs.c | 1 + src/remote.c | 1 + 8 files changed, 8 insertions(+) diff --git a/src/attr.c b/src/attr.c index a6a87afee..de714a697 100644 --- a/src/attr.c +++ b/src/attr.c @@ -1,6 +1,7 @@ #include "repository.h" #include "fileops.h" #include "config.h" +#include "git2/oid.h" #include GIT__USE_STRMAP; diff --git a/src/cache.c b/src/cache.c index f8d89403b..3aa14f012 100644 --- a/src/cache.c +++ b/src/cache.c @@ -11,6 +11,7 @@ #include "thread-utils.h" #include "util.h" #include "cache.h" +#include "git2/oid.h" int git_cache_init(git_cache *cache, size_t size, git_cached_obj_freeptr free_ptr) { diff --git a/src/diff.c b/src/diff.c index 2b1529d63..a5bf07a65 100644 --- a/src/diff.c +++ b/src/diff.c @@ -6,6 +6,7 @@ */ #include "common.h" #include "git2/diff.h" +#include "git2/oid.h" #include "diff.h" #include "fileops.h" #include "config.h" diff --git a/src/diff_output.c b/src/diff_output.c index 9f8779787..bd8e8edda 100644 --- a/src/diff_output.c +++ b/src/diff_output.c @@ -8,6 +8,7 @@ #include "git2/diff.h" #include "git2/attr.h" #include "git2/blob.h" +#include "git2/oid.h" #include "xdiff/xdiff.h" #include #include "diff.h" diff --git a/src/index.c b/src/index.c index e021a4036..b6b1b779e 100644 --- a/src/index.c +++ b/src/index.c @@ -14,6 +14,7 @@ #include "tree-cache.h" #include "hash.h" #include "git2/odb.h" +#include "git2/oid.h" #include "git2/blob.h" #include "git2/config.h" diff --git a/src/odb.c b/src/odb.c index 97b389893..d5902840d 100644 --- a/src/odb.c +++ b/src/odb.c @@ -14,6 +14,7 @@ #include "delta-apply.h" #include "git2/odb_backend.h" +#include "git2/oid.h" #define GIT_ALTERNATES_FILE "info/alternates" diff --git a/src/refs.c b/src/refs.c index c602d1b18..cf55a6fd5 100644 --- a/src/refs.c +++ b/src/refs.c @@ -14,6 +14,7 @@ #include #include +#include GIT__USE_STRMAP; diff --git a/src/remote.c b/src/remote.c index fc1a2ecc1..fe026b175 100644 --- a/src/remote.c +++ b/src/remote.c @@ -7,6 +7,7 @@ #include "git2/config.h" #include "git2/types.h" +#include "git2/oid.h" #include "config.h" #include "repository.h"