mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user