diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-09 03:56:10 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-11 08:05:54 -0500 |
commit | 68ed2854284d415a71efd856a40343f550881ede (patch) | |
tree | f00f87cc7628c8e82de418bacc5d941db46c2481 /sim/common/sim-utils.c | |
parent | a8aa72b913e78407e5de4fefd22f9b98e4466f30 (diff) | |
download | binutils-68ed2854284d415a71efd856a40343f550881ede.zip binutils-68ed2854284d415a71efd856a40343f550881ede.tar.gz binutils-68ed2854284d415a71efd856a40343f550881ede.tar.bz2 |
sim: clean up C11 header includes
Since we require C11 now, we can assume many headers exist, and
clean up all of the conditional includes. It's not like any of
this code actually accounted for the headers not existing, just
whether we could include them.
The strings.h cleanup is a little nuanced: it isn't in C11, but
every use of it in the codebase will include strings.h only if
string.h doesn't exist. Since we now assume the C11 string.h
exists, we'll never include strings.h, so we can delete it.
Diffstat (limited to 'sim/common/sim-utils.c')
-rw-r--r-- | sim/common/sim-utils.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sim/common/sim-utils.c b/sim/common/sim-utils.c index 122e7f2..69949aa 100644 --- a/sim/common/sim-utils.c +++ b/sim/common/sim-utils.c @@ -20,14 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "sim-main.h" #include "sim-assert.h" -#ifdef HAVE_STDLIB_H #include <stdlib.h> -#endif - -#ifdef HAVE_TIME_H #include <time.h> -#endif - #ifdef HAVE_SYS_TIME_H #include <sys/time.h> /* needed by sys/resource.h */ #endif @@ -35,14 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h> #endif - -#ifdef HAVE_STRING_H #include <string.h> -#else -#ifdef HAVE_STRINGS_H -#include <strings.h> -#endif -#endif #include "libiberty.h" #include "bfd.h" |