diff options
author | Peter O'Gorman <pogma@thewrittenword.com> | 2008-03-03 22:35:13 +0000 |
---|---|---|
committer | Ralf Wildenhues <rwild@gcc.gnu.org> | 2008-03-03 22:35:13 +0000 |
commit | a1b25e49f867208ec896a7f273441d2972dd591c (patch) | |
tree | 27d45ff18c9d1dc83f9279746902ec71b0543b8c /libgomp/env.c | |
parent | 2f1010734ac3faea301994584ba60a75d53911b3 (diff) | |
download | gcc-a1b25e49f867208ec896a7f273441d2972dd591c.zip gcc-a1b25e49f867208ec896a7f273441d2972dd591c.tar.gz gcc-a1b25e49f867208ec896a7f273441d2972dd591c.tar.bz2 |
re PR libgomp/33131 (libgomp/env.c:60: warning: implicit declaration of function 'strncasecmp')
2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
PR libgomp/33131
* configure.ac: Add ACX_HEADER_STRING.
* env.c: Include strings.h.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
From-SVN: r132844
Diffstat (limited to 'libgomp/env.c')
-rw-r--r-- | libgomp/env.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libgomp/env.c b/libgomp/env.c index 4a07bfa..6c6a352 100644 --- a/libgomp/env.c +++ b/libgomp/env.c @@ -32,7 +32,18 @@ #include "libgomp_f.h" #include <ctype.h> #include <stdlib.h> -#include <string.h> +#ifdef STRING_WITH_STRINGS +# include <string.h> +# include <strings.h> +#else +# ifdef HAVE_STRING_H +# include <string.h> +# else +# ifdef HAVE_STRINGS_H +# include <strings.h> +# endif +# endif +#endif #include <limits.h> #include <errno.h> |