X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstring.in.h;h=d88e8a73e65f15d61143ae8d75d18248af016026;hb=2fd7e9189c239ef737105bc085ace4dc80435533;hp=7e6bd088e8d1fe4fcbf8775ab45ccbc58abdf85b;hpb=f94627382dd83f0b4a5572a08257976e21d2f8d0;p=gnulib.git diff --git a/lib/string.in.h b/lib/string.in.h index 7e6bd088e..d88e8a73e 100644 --- a/lib/string.in.h +++ b/lib/string.in.h @@ -313,11 +313,15 @@ char *strstr (const char *haystack, const char *needle) /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive comparison. */ -#if ! @HAVE_STRCASESTR@ +#if @GNULIB_STRCASESTR@ +# if @REPLACE_STRCASESTR@ +# define strcasestr rpl_strcasestr +# endif +# if ! @HAVE_STRCASESTR@ || @REPLACE_STRCASESTR@ extern char *strcasestr (const char *haystack, const char *needle) __attribute__ ((__pure__)); -#endif -#if defined GNULIB_POSIXCHECK +# endif +#elif defined GNULIB_POSIXCHECK /* strcasestr() does not work with multibyte strings: It is a glibc extension, and glibc implements it only for unibyte locales. */