reftable: ensure git-compat-util.h is the first (indirect) include

Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elijah Newren committed Apr 22, 2023 at 20:17 UTC e3a3f5edf52c7f6161b167058b4d7c3a31dc0c3b
5 files changed +5 -2
reftable/error.c
+1
@@ -6,6 +6,7 @@ license that can be found in the LICENSE file or at
6 https://developers.google.com/open-source/licenses/bsd
7 */
8
9 +#include "system.h"
10 #include "reftable-error.h"
11
12 #include <stdio.h>
reftable/publicbasics.c
+1 -1
@@ -6,10 +6,10 @@ license that can be found in the LICENSE file or at
6 https://developers.google.com/open-source/licenses/bsd
7 */
8
9 +#include "system.h"
10 #include "reftable-malloc.h"
11
12 #include "basics.h"
12 -#include "system.h"
13
14 static void *(*reftable_malloc_ptr)(size_t sz);
15 static void *(*reftable_realloc_ptr)(void *, size_t);
reftable/tree.c
+1 -1
@@ -6,10 +6,10 @@ license that can be found in the LICENSE file or at
6 https://developers.google.com/open-source/licenses/bsd
7 */
8
9 +#include "system.h"
10 #include "tree.h"
11
12 #include "basics.h"
12 -#include "system.h"
13
14 struct tree_node *tree_search(void *key, struct tree_node **rootp,
15 int (*compare)(const void *, const void *),
reftable/tree_test.c
+1
@@ -6,6 +6,7 @@ license that can be found in the LICENSE file or at
6 https://developers.google.com/open-source/licenses/bsd
7 */
8
9 +#include "system.h"
10 #include "tree.h"
11
12 #include "basics.h"
t/helper/test-reftable.c
+1
@@ -1,3 +1,4 @@
1 +#include "reftable/system.h"
2 #include "reftable/reftable-tests.h"
3 #include "test-tool.h"
4