2008-08-28 Ryan Lortie <desrt@desrt.ca>
[REVERT] Bug 548612 – g_strstr_len() should use memmem when available
* configure.in:
* glib/gstrfuncs.c (g_strstr_len): revert use of memmem (see bug)
svn path=/trunk/; revision=7413
+2008-08-28 Ryan Lortie <desrt@desrt.ca>
+
+ [REVERT] Bug 548612 – g_strstr_len() should use memmem when available
+
+ * configure.in:
+ * glib/gstrfuncs.c (g_strstr_len): revert use of memmem (see bug)
+
2008-08-28 Matthias Clasen <mclsaen@redhat.com>
* configure.in: Change libselinux detection to not link libglib
AC_CHECK_FUNCS(posix_memalign)
AC_CHECK_FUNCS(memalign)
AC_CHECK_FUNCS(valloc)
-AC_CHECK_FUNCS(memmem)
AC_CHECK_FUNCS(atexit on_exit)
return strstr (haystack, needle);
else
{
-#ifdef HAVE_MEMMEM
- size_t len;
-
- len = MIN(haystack_len, strlen (haystack));
- return memmem (haystack, len, needle, strlen (needle));
-#else
const gchar *p = haystack;
gsize needle_len = strlen (needle);
const gchar *end;
}
return NULL;
-#endif /* HAVE_MEMMEM */
}
}