Only provide strcasestr for WIN32 toolchains

All the other toolchains appear to be providing this function and only
MSVC+mingw are missing out.

cf. https://github.com/OpenRCT2/OpenRCT2/pull/7942
This commit is contained in:
Michał Janiszewski 2018-08-30 22:55:15 +02:00
parent 03cd16220e
commit f9600ccfd9
2 changed files with 2 additions and 2 deletions

View File

@ -483,7 +483,7 @@ char* safe_strtrimleft(char* destination, const char* source, size_t size)
return safe_strcpy(destination, source, size);
}
#if !(defined(_GNU_SOURCE) || (defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L))
#if defined(_WIN32)
char* strcasestr(const char* haystack, const char* needle)
{
const char* p1 = haystack;

View File

@ -44,7 +44,7 @@ char* safe_strcpy(char* destination, const char* source, size_t num);
char* safe_strcat(char* destination, const char* source, size_t size);
char* safe_strcat_path(char* destination, const char* source, size_t size);
char* safe_strtrimleft(char* destination, const char* source, size_t size);
#if !(defined(_GNU_SOURCE) || (defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L))
#if defined(_WIN32)
char* strcasestr(const char* haystack, const char* needle);
#endif