From 4c50b6c8927ad98513d77cdc7c95344545f3226f Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 27 Dec 2018 12:46:55 -0800 Subject: [PATCH] Move inclusion to "compiler.h" Move the inclusion of from nasmlib.h to compiler.h Try to centralize compiler dependences as much as possible. Signed-off-by: H. Peter Anvin --- include/compiler.h | 3 +++ include/nasmlib.h | 4 ---- 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 #include +#ifdef HAVE_STRINGS_H +# include +#endif #ifdef HAVE_SYS_TYPES_H # include #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 -#endif - /* * Wrappers around malloc, realloc, free and a few more. nasm_malloc * will fatal-error and die rather than return NULL; nasm_realloc will