Mercurial > hg > octave-kai > gnulib-hg
changeset 2605:18ce3c88a946
Include memory.h, string.h, and/or strings.h as needed.
(this snippet comes from src/system.h).
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 18 Jun 2000 18:16:54 +0000 |
parents | 7e84651c4aa9 |
children | 5d3838e4e804 |
files | lib/strnlen.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/strnlen.c +++ b/lib/strnlen.c @@ -21,7 +21,14 @@ # include <config.h> #endif -#include <string.h> +#if HAVE_STRING_H +# if !STDC_HEADERS && HAVE_MEMORY_H +# include <memory.h> +# endif +# include <string.h> +#else +# include <strings.h> +#endif #ifndef HAVE_DECL_MEMCHR "this configure-time declaration test was not run"