19#ifndef NETSURF_UTILS_CONFIG_H_
20#define NETSURF_UTILS_CONFIG_H_
24#if defined(__NetBSD__)
26#if (defined(__NetBSD_Version__) && __NetBSD_Prereq__(8,0,0))
32#if __GLIBC_PREREQ(2, 38)
39#if (defined(_GNU_SOURCE) && \
40 !defined(__APPLE__) || \
41 defined(__amigaos4__) || \
42 defined(__HAIKU__) || \
43 (defined(_POSIX_C_SOURCE) && ((_POSIX_C_SOURCE - 0) >= 200809L)) && \
48char *
strndup(
const char *s,
size_t n);
51#if ((defined(_GNU_SOURCE) || \
52 defined(NS_NEW_GLIBC) || \
53 defined(__APPLE__) || \
54 defined(__HAIKU__) || \
55 defined(__NetBSD__) || \
56 defined(__OpenBSD__)) && \
57 !defined(__serenity__))
58#define HAVE_STRCASESTR
61char *
strcasestr(
const char *haystack,
const char *needle);
67#if (defined(_WIN32) || \
68 defined(__riscos__) || \
69 defined(__HAIKU__) || \
70 defined(__BEOS__) || \
71 defined(__amigaos4__) || \
72 defined(__AMIGA__) || \
84#if ((defined(_GNU_SOURCE) && !defined(__APPLE__)) || \
85 defined(NS_NEW_GLIBC) || \
86 defined(__riscos__) || \
98#if !defined(__amigaos4__) && defined(__AMIGA__)
102#define HAVE_SYS_SELECT
103#define HAVE_POSIX_INET_HEADERS
105#undef HAVE_SYS_SELECT
106#undef HAVE_POSIX_INET_HEADERS
110#if (defined(_WIN32) || \
111 defined(__serenity__))
147#if (defined(_WIN32) || defined(__riscos__) || defined(__HAIKU__) || defined(__BEOS__) || defined(__amigaos4__) || defined(__AMIGA__) || defined(__MINT__))
152#if (defined(_WIN32) || \
153 defined(__serenity__))
160#if (defined(_WIN32) || defined(__riscos__) || defined(__HAIKU__) || defined(__BEOS__) || defined(__amigaos4__) || defined(__AMIGA__) || defined(__MINT__))
167#if (defined(__serenity__))
172#if ((defined(__linux__) && defined(__GLIBC__) && !defined(__UCLIBC__)) || \
186 #define WITH_THEME_INSTALL
187#elif defined(__HAIKU__) || defined(__BEOS__)
190 #if defined(__HAIKU__)
193 #if defined(__BEOS__)
203#if (defined(__amigaos4__) || \
204 defined(__AMIGA__) || \
205 defined(nsatari) || \
206 defined(__serenity__))
char * strcasestr(const char *haystack, const char *needle)
Case insensitive strstr implementation.
char * strndup(const char *s, size_t n)
Duplicate up to n characters of a string.
char * strchrnul(const char *s, int c)
Find the first occurrence of C in S or the final NUL byte.
char * realpath(const char *f, char *buf)
Netsurf additional integer type formatting macros.
static nserror path(const struct redraw_context *ctx, const plot_style_t *pstyle, const float *p, unsigned int n, const float transform[6])
Plots a path.