diff options
author | H. Peter Anvin <hpa@zytor.com> | 2018-12-27 12:43:28 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2018-12-27 12:45:44 -0800 |
commit | 8960e1bc83658b3bf27fec028ec08136eec45382 (patch) | |
tree | b9edf4a5f77308c3dfe2c2ce77e9e2e8c2e306e1 /nasmlib | |
parent | c2f3f2601593823c1844a5b35b98ccb445ddde66 (diff) | |
download | nasm-8960e1bc83658b3bf27fec028ec08136eec45382.tar.gz |
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 <hpa@zytor.com>
Diffstat (limited to 'nasmlib')
-rw-r--r-- | nasmlib/errfile.c | 1 | ||||
-rw-r--r-- | nasmlib/file.h | 1 | ||||
-rw-r--r-- | nasmlib/realpath.c | 2 |
3 files changed, 0 insertions, 4 deletions
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 <stdio.h> 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 <fcntl.h> #endif #ifdef HAVE_SYS_TYPES_H -# include <sys/types.h> #endif #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> 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 <stdlib.h> #include <errno.h> -#include <limits.h> #ifdef HAVE_UNISTD_H # include <unistd.h> #endif |