mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-02 19:39:12 +00:00
(svn r15376) -Fix [FS#2608] (r15371): OSX/BSD also seems to define strcasecmp under some circumstances.
This commit is contained in:
@@ -362,7 +362,9 @@ char *strndup(const char *s, size_t len)
|
||||
memcpy(tmp, s, len);
|
||||
return tmp;
|
||||
}
|
||||
#endif /* !_GNU_SOURCE */
|
||||
|
||||
#ifdef DEFINE_STRCASESTR
|
||||
const char *strcasestr(const char *haystack, const char *needle)
|
||||
{
|
||||
size_t hay_len = strlen(haystack);
|
||||
@@ -376,4 +378,4 @@ const char *strcasestr(const char *haystack, const char *needle)
|
||||
|
||||
return NULL;
|
||||
}
|
||||
#endif /* !_GNU_SOURCE */
|
||||
#endif /* DEFINE_STRCASESTR */
|
||||
|
Reference in New Issue
Block a user