From 8960e1bc83658b3bf27fec028ec08136eec45382 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 27 Dec 2018 12:43:28 -0800 Subject: Remove #includes already provided by "compiler.h" "compiler.h" already includes a bunch of common include files. There is absolutely no reason to duplicate them in individual files, and in fact it robs us of central control of how these files are used. Signed-off-by: H. Peter Anvin --- nasmlib/errfile.c | 1 - nasmlib/file.h | 1 - nasmlib/realpath.c | 2 -- 3 files changed, 4 deletions(-) (limited to 'nasmlib') diff --git a/nasmlib/errfile.c b/nasmlib/errfile.c index ee4bae8e..a2c5e4ff 100644 --- a/nasmlib/errfile.c +++ b/nasmlib/errfile.c @@ -1,5 +1,4 @@ #include "compiler.h" -#include FILE *error_file; diff --git a/nasmlib/file.h b/nasmlib/file.h index 4069ec64..399e3190 100644 --- a/nasmlib/file.h +++ b/nasmlib/file.h @@ -44,7 +44,6 @@ # include #endif #ifdef HAVE_SYS_TYPES_H -# include #endif #ifdef HAVE_SYS_STAT_H # include diff --git a/nasmlib/realpath.c b/nasmlib/realpath.c index d93dc15f..c31003e3 100644 --- a/nasmlib/realpath.c +++ b/nasmlib/realpath.c @@ -37,9 +37,7 @@ #include "compiler.h" -#include #include -#include #ifdef HAVE_UNISTD_H # include #endif -- cgit v1.2.1