summaryrefslogtreecommitdiff
path: root/lib/os_internal.h
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2008-07-02 18:10:01 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2008-07-02 18:10:01 +0100
commit4d9268deac1c4755343b392f9dd18ec30753444d (patch)
treeba6df1b6074ce4ac2dfa7a0dd8144db830666ae7 /lib/os_internal.h
parent9512237d4627c2568be7d1125a1f5cc034ba8377 (diff)
downloadxine-lib-4d9268deac1c4755343b392f9dd18ec30753444d.tar.gz
xine-lib-4d9268deac1c4755343b392f9dd18ec30753444d.tar.bz2
Cope with missing strcasestr().
Diffstat (limited to 'lib/os_internal.h')
-rw-r--r--lib/os_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/os_internal.h b/lib/os_internal.h
index 6e6e14a3d..968b8f02f 100644
--- a/lib/os_internal.h
+++ b/lib/os_internal.h
@@ -65,6 +65,13 @@ const char *xine_private_hstrerror(int err);
int xine_private_setenv(const char *name, const char *value);
#endif
+/* replacement of strcasestr */
+#ifndef HAVE_STRCASESTR
+#define HAVE_STRCASESTR
+#define strcasestr(HAYSTACK, NEEDLE) xine_private_strcasestr((HAYSTACK), (NEEDLE))
+char *xine_private_strcasestr(const char *haystack, const char *needle);
+#endif
+
/* replacement of strtok_r */
#ifndef HAVE_STRTOK_R
#define HAVE_STRTOK_R