From b46054b3746271d23feab001b49357983fda42f1 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Thu, 11 Apr 2019 09:48:33 -0400 Subject: 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 Signed-off-by: Junio C Hamano 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 -#include -#include -#include -#include -#include - +#include "git-compat-util.h" #include "xmacros.h" #include "xdiff.h" #include "xtypes.h" -- cgit v0.10.2-6-g49f6