diff options
author | Jeff King <peff@peff.net> | 2019-04-11 13:48:33 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-12 04:34:17 (GMT) |
commit | b46054b3746271d23feab001b49357983fda42f1 (patch) | |
tree | 2c2951085a79a56093ab8423b5b031051570e508 /xdiff | |
parent | 73a5faf0176548640784090190bb2448cf1708aa (diff) | |
download | git-b46054b3746271d23feab001b49357983fda42f1.zip git-b46054b3746271d23feab001b49357983fda42f1.tar.gz git-b46054b3746271d23feab001b49357983fda42f1.tar.bz2 |
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff')
-rw-r--r-- | xdiff/xinclude.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/xdiff/xinclude.h b/xdiff/xinclude.h index f35c448..a4285ac 100644 --- a/xdiff/xinclude.h +++ b/xdiff/xinclude.h @@ -23,13 +23,7 @@ #if !defined(XINCLUDE_H) #define XINCLUDE_H -#include <ctype.h> -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> -#include <string.h> -#include <limits.h> - +#include "git-compat-util.h" #include "xmacros.h" #include "xdiff.h" #include "xtypes.h" |