Skip to content

Commit

Permalink
reftable: ensure git-compat-util.h is the first (indirect) include
Browse files Browse the repository at this point in the history
Signed-off-by: Elijah Newren <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
newren authored and gitster committed Apr 24, 2023
1 parent 0e312ea commit e3a3f5e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions reftable/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/

#include "system.h"
#include "reftable-error.h"

#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion reftable/publicbasics.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/

#include "system.h"
#include "reftable-malloc.h"

#include "basics.h"
#include "system.h"

static void *(*reftable_malloc_ptr)(size_t sz);
static void *(*reftable_realloc_ptr)(void *, size_t);
Expand Down
2 changes: 1 addition & 1 deletion reftable/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/

#include "system.h"
#include "tree.h"

#include "basics.h"
#include "system.h"

struct tree_node *tree_search(void *key, struct tree_node **rootp,
int (*compare)(const void *, const void *),
Expand Down
1 change: 1 addition & 0 deletions reftable/tree_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/

#include "system.h"
#include "tree.h"

#include "basics.h"
Expand Down
1 change: 1 addition & 0 deletions t/helper/test-reftable.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "reftable/system.h"
#include "reftable/reftable-tests.h"
#include "test-tool.h"

Expand Down

0 comments on commit e3a3f5e

Please sign in to comment.