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>

Jeff King committed Apr 11, 2019 at 09:48 UTC b46054b3746271d23feab001b49357983fda42f1
1 file changed +1 -7
xdiff/xinclude.h
+1 -7
@@ -23,13 +23,7 @@
23 #if !defined(XINCLUDE_H)
24 #define XINCLUDE_H
25
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"
27 #include "xmacros.h"
28 #include "xdiff.h"
29 #include "xtypes.h"