aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/compiler.h1
-rw-r--r--include/iflag.h1
-rw-r--r--include/nasmlib.h1
3 files changed, 1 insertions, 2 deletions
diff --git a/include/compiler.h b/include/compiler.h
index b390bc2d..25aeea1e 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -82,6 +82,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <limits.h>
#ifdef HAVE_SYS_TYPES_H
diff --git a/include/iflag.h b/include/iflag.h
index 5280703e..f3056c3d 100644
--- a/include/iflag.h
+++ b/include/iflag.h
@@ -4,7 +4,6 @@
#include "compiler.h"
#include "ilog2.h"
-#include <string.h>
#include "iflaggen.h"
diff --git a/include/nasmlib.h b/include/nasmlib.h
index d744a7b8..e342a293 100644
--- a/include/nasmlib.h
+++ b/include/nasmlib.h
@@ -42,7 +42,6 @@
#include "bytesex.h"
#include <stdio.h>
-#include <string.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif