From ddeadd1c02880367ad786b113d352a519f45ec73 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 23 Jul 2009 23:05:34 +0000 Subject: Merge LibCSS port to trunk. svn path=/trunk/netsurf/; revision=8752 --- utils/config.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'utils/config.h') diff --git a/utils/config.h b/utils/config.h index f46423ad7..e184c6964 100644 --- a/utils/config.h +++ b/utils/config.h @@ -34,6 +34,21 @@ char *strndup(const char *s, size_t n); #endif +#define HAVE_STRCASESTR +#if !(defined(_GNU_SOURCE) || defined(__NetBSD__) || defined(__OpenBSD__)) \ + || defined(riscos) || defined(__APPLE__) +#undef HAVE_STRCASESTR +char *strcasestr(const char *haystack, const char *needle); +#endif + +#define HAVE_STRCHRNUL +/* For some reason, UnixLib defines this unconditionally. + * Assume we're using UnixLib if building for RISC OS. */ +#if !(defined(_GNU_SOURCE) || defined(riscos)) +#undef HAVE_STRCHRNUL +char *strchrnul(const char *s, int c); +#endif + /* This section toggles build options on and off. * Simply undefine a symbol to turn the relevant feature off. * -- cgit v1.2.3