aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-12-27 12:46:55 -0800
committerH. Peter Anvin <hpa@zytor.com>2018-12-27 12:46:55 -0800
commit4c50b6c8927ad98513d77cdc7c95344545f3226f (patch)
tree7b49212539a95b91e625dd15fd2ee79e59116fb2 /include
parent8960e1bc83658b3bf27fec028ec08136eec45382 (diff)
downloadnasm-4c50b6c8927ad98513d77cdc7c95344545f3226f.tar.gz
nasm-4c50b6c8927ad98513d77cdc7c95344545f3226f.tar.xz
nasm-4c50b6c8927ad98513d77cdc7c95344545f3226f.zip
Move <strings.h> inclusion to "compiler.h"
Move the inclusion of <strings.h> from nasmlib.h to compiler.h Try to centralize compiler dependences as much as possible. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include')
-rw-r--r--include/compiler.h3
-rw-r--r--include/nasmlib.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/include/compiler.h b/include/compiler.h
index 643e04c2..b7ac32a0 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -85,6 +85,9 @@
#include <string.h>
#include <limits.h>
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
diff --git a/include/nasmlib.h b/include/nasmlib.h
index fb14c73b..f6d351da 100644
--- a/include/nasmlib.h
+++ b/include/nasmlib.h
@@ -41,10 +41,6 @@
#include "compiler.h"
#include "bytesex.h"
-#ifdef HAVE_STRINGS_H
-# include <strings.h>
-#endif
-
/*
* Wrappers around malloc, realloc, free and a few more. nasm_malloc
* will fatal-error and die rather than return NULL; nasm_realloc will