mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
03cd16220e
commit
f9600ccfd9
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue