oid: Explicitly include `oid.h` for the inlined CMP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
diff --git a/src/attr.c b/src/attr.c
index a6a87af..de714a6 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 <ctype.h>
GIT__USE_STRMAP;
diff --git a/src/cache.c b/src/cache.c
index f8d8940..3aa14f0 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 2b1529d..a5bf07a 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 9f87797..bd8e8ed 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 <ctype.h>
#include "diff.h"
diff --git a/src/index.c b/src/index.c
index e021a40..b6b1b77 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 97b3898..d590284 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 c602d1b..cf55a6f 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -14,6 +14,7 @@
#include <git2/tag.h>
#include <git2/object.h>
+#include <git2/oid.h>
GIT__USE_STRMAP;
diff --git a/src/remote.c b/src/remote.c
index fc1a2ec..fe026b1 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"