From b29ef22135c57a032c3c8d65b345a8f16e7b2b26 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 15 Sep 2022 00:30:31 -0500 Subject: [PATCH] =?utf8?q?maint:=20don=E2=80=99t=20include=20config.h=20tw?= =?utf8?q?ice?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * gl/lib/fadvise.h, gl/lib/smack.h, src/blake2/blake2-impl.h: Do not include config.h from a .h file. config.h is supposed to be included once, at the start of compilation and before any other file. --- gl/lib/fadvise.h | 1 - gl/lib/smack.h | 2 -- src/blake2/blake2-impl.h | 3 --- 3 files changed, 6 deletions(-) diff --git a/gl/lib/fadvise.h b/gl/lib/fadvise.h index 05d1a5bf23..437788d7db 100644 --- a/gl/lib/fadvise.h +++ b/gl/lib/fadvise.h @@ -14,7 +14,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include #include #include #include diff --git a/gl/lib/smack.h b/gl/lib/smack.h index bcebf08f0e..e5c8cc0b05 100644 --- a/gl/lib/smack.h +++ b/gl/lib/smack.h @@ -17,8 +17,6 @@ /* Here we replace or wrap the most common smack functions used by coreutils. Others will need to be protected by HAVE_SMACK. */ -#include - #ifdef HAVE_SMACK # include #else diff --git a/src/blake2/blake2-impl.h b/src/blake2/blake2-impl.h index 7ecc8a615a..02a1b8feca 100644 --- a/src/blake2/blake2-impl.h +++ b/src/blake2/blake2-impl.h @@ -15,9 +15,6 @@ #ifndef BLAKE2_IMPL_H #define BLAKE2_IMPL_H -#ifdef HAVE_CONFIG_H -# include -#endif #ifndef WORDS_BIGENDIAN # define NATIVE_LITTLE_ENDIAN 1 #endif -- 2.47.2