aboutsummaryrefslogtreecommitdiffstats
path: root/stdlib
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-12-26 06:32:37 -0800
committerH. Peter Anvin <hpa@zytor.com>2018-12-26 06:32:37 -0800
commit2e53f27e9dbe8c02b39696569297c86e7cad323c (patch)
tree43bdcd21f57fde5fd3d2fac718cb124abe8a872d /stdlib
parent0a2b1c34988e28c33d5d0a1b12ccdb19dc320793 (diff)
downloadnasm-2e53f27e9dbe8c02b39696569297c86e7cad323c.tar.gz
nasm-2e53f27e9dbe8c02b39696569297c86e7cad323c.tar.xz
nasm-2e53f27e9dbe8c02b39696569297c86e7cad323c.zip
Move <string.h> inclusion to compiler.h
There is absolutely no reason not to include <string.h> globally, and with the inline function for mempcpy() we need it there anyway. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/strnlen.c1
-rw-r--r--stdlib/strrchrnul.c1
-rw-r--r--stdlib/vsnprintf.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/stdlib/strnlen.c b/stdlib/strnlen.c
index 40eacf54..193245ed 100644
--- a/stdlib/strnlen.c
+++ b/stdlib/strnlen.c
@@ -32,7 +32,6 @@
* ----------------------------------------------------------------------- */
#include "compiler.h"
-#include <string.h>
#ifndef HAVE_STRNLEN
diff --git a/stdlib/strrchrnul.c b/stdlib/strrchrnul.c
index d25148eb..2fc8eb62 100644
--- a/stdlib/strrchrnul.c
+++ b/stdlib/strrchrnul.c
@@ -32,7 +32,6 @@
* ----------------------------------------------------------------------- */
#include "compiler.h"
-#include <string.h>
#ifndef HAVE_STRRCHRNUL
diff --git a/stdlib/vsnprintf.c b/stdlib/vsnprintf.c
index ea83921c..f3106d26 100644
--- a/stdlib/vsnprintf.c
+++ b/stdlib/vsnprintf.c
@@ -10,7 +10,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
-#include <string.h>
#include "nasmlib.h"
#include "error.h"