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>
This commit is contained in:
H. Peter Anvin 2018-12-27 12:46:55 -08:00
parent 8960e1bc83
commit 4c50b6c892
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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