diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-23 23:05:34 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-23 23:05:34 +0000 |
commit | ddeadd1c02880367ad786b113d352a519f45ec73 (patch) | |
tree | 00b8b46ee1a3fc84e5492c2183dfaa8192d261f9 /utils/config.h | |
parent | b20949a35025b23da1bf0ac6003f4575eb94281d (diff) | |
download | netsurf-ddeadd1c02880367ad786b113d352a519f45ec73.tar.gz netsurf-ddeadd1c02880367ad786b113d352a519f45ec73.tar.bz2 |
Merge LibCSS port to trunk.
svn path=/trunk/netsurf/; revision=8752
Diffstat (limited to 'utils/config.h')
-rw-r--r-- | utils/config.h | 15 |
1 files changed, 15 insertions, 0 deletions
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. * |