]> Kevux Git Server - rit/commitdiff
compat: drop inclusion of <git-compat-util.h>
authorJunio C Hamano <gitster@pobox.com>
Sat, 24 Feb 2024 20:32:51 +0000 (12:32 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 24 Feb 2024 22:37:41 +0000 (14:37 -0800)
These two header files are included from ordinary source files that
already include <git-compat-util.h> as the first header file as they
should.  There is no need to include the compat-util in these
headers.

"make hdr-check" is not affected, as it is designed to assume that
what <git-compat-util.h> offers is available to everybody without
being included.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/compiler.h
compat/disk.h

index 10dbb65..e9ad9db 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef COMPILER_H
 #define COMPILER_H
 
-#include "git-compat-util.h"
 #include "strbuf.h"
 
 #ifdef __GLIBC__
index 6c979c2..23bc1be 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef COMPAT_DISK_H
 #define COMPAT_DISK_H
 
-#include "git-compat-util.h"
 #include "abspath.h"
 #include "gettext.h"