aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
-rw-r--r--src/support.c19
-rw-r--r--src/support.h4
3 files changed, 0 insertions, 29 deletions
diff --git a/configure.ac b/configure.ac
index e85570bd4..ebc19fdea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,12 +28,6 @@ AC_CHECK_HEADER([locale.h],
dnl
-dnl Check for functions
-dnl
-AC_CHECK_FUNCS([strcasestr])
-
-
-dnl
dnl ncmpc-mini
dnl
diff --git a/src/support.c b/src/support.c
index 68dc55887..3dbebd0e1 100644
--- a/src/support.c
+++ b/src/support.c
@@ -24,25 +24,6 @@
#include <ctype.h>
#include <string.h>
-#ifndef HAVE_STRCASESTR
-const char *
-strcasestr(const char *haystack, const char *needle)
-{
- char *haystack2 = g_utf8_strdown(haystack, -1);
- char *needle2 = g_utf8_strdown(needle, -1);
- char *result;
-
- assert(haystack != NULL);
- assert(needle != NULL);
-
- result = strstr(haystack2, needle2);
- g_free(haystack2);
- g_free(needle2);
-
- return haystack + (result - haystack2);
-}
-#endif /* HAVE_STRCASESTR */
-
#ifndef NCMPC_MINI
// FIXME: utf-8 length
diff --git a/src/support.h b/src/support.h
index bebbbdad0..488629236 100644
--- a/src/support.h
+++ b/src/support.h
@@ -24,10 +24,6 @@
#include <glib.h>
-#ifndef HAVE_STRCASESTR
-const char *strcasestr(const char *haystack, const char *needle);
-#endif
-
#ifndef NCMPC_MINI
typedef struct {