Check for strcasestr

This commit is contained in:
brenosilva
2012-07-27 01:10:33 +00:00
parent 1e8259b4a4
commit 543a7db8a7
3 changed files with 6 additions and 3 deletions

View File

@@ -570,7 +570,7 @@ char *file_basename(apr_pool_t *mp, const char *filename) {
return d;
}
#ifdef WIN32
#if defined(WIN32) || !defined(HAVE_STRCASESTR)
char *strcasestr(const char *haystack, const char *needle) {
char aux, lower_aux;
int length;
@@ -588,7 +588,8 @@ char *strcasestr(const char *haystack, const char *needle) {
}
return ((char *)haystack);
}
#endif
#ifdef WIN32
int inet_pton(int family, const char *src, void *dst) {
struct addrinfo addr;
struct sockaddr_in *in = NULL;

View File

@@ -31,6 +31,8 @@
#ifdef WIN32
#include <ws2tcpip.h>
int DSOLOCAL inet_pton(int family, const char *src, void *dst);
#endif
#if defined(WIN32) || !defined(HAVE_STRCASESTR)
char DSOLOCAL *strcasestr(const char *haystack, const char *needle);
#endif