Skip to content

Commit b46054b

Browse files
peffgitster
authored andcommitted
xdiff: use git-compat-util
Since the xdiff library was not originally part of Git, it does its own system includes. Let's instead use git-compat-util, which has two benefits: 1. It adjusts for any system-specific quirks in how or what we should include (though xdiff's needs are light enough that this hasn't been a problem in the past). 2. It lets us use wrapper functions like xmalloc(). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 73a5faf commit b46054b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

xdiff/xinclude.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@
2323
#if !defined(XINCLUDE_H)
2424
#define XINCLUDE_H
2525

26-
#include <ctype.h>
27-
#include <stdio.h>
28-
#include <stdlib.h>
29-
#include <unistd.h>
30-
#include <string.h>
31-
#include <limits.h>
32-
26+
#include "git-compat-util.h"
3327
#include "xmacros.h"
3428
#include "xdiff.h"
3529
#include "xtypes.h"

0 commit comments

Comments
 (0)