1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-17 17:32:45 +01:00

Codechange: Replace strcasestr with StrContainsIgnoreCase.

This commit is contained in:
frosch
2025-04-04 21:42:45 +02:00
committed by frosch
parent 14bab7d76b
commit 9229956f04
4 changed files with 7 additions and 32 deletions

View File

@@ -243,12 +243,4 @@ inline bool IsWhitespace(char32_t c)
#include <sys/param.h>
#endif
/* strcasestr is available for _GNU_SOURCE, BSD and some Apple */
#if defined(_GNU_SOURCE) || (defined(__BSD_VISIBLE) && __BSD_VISIBLE) || (defined(__APPLE__) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))) || defined(_NETBSD_SOURCE)
# undef DEFINE_STRCASESTR
#else
# define DEFINE_STRCASESTR
char *strcasestr(const char *haystack, const char *needle);
#endif /* strcasestr is available */
#endif /* STRING_FUNC_H */