forked from mirror/OpenTTD
(svn r15371) -Codechange: add an implementation of strcasestr for when _GNU_SOURCE isn't defined.
This commit is contained in:
@@ -234,8 +234,9 @@ static inline bool IsWhitespace(WChar c)
|
||||
}
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
/* strndup is a GNU extension */
|
||||
/* strndup and strcasestr are GNU extensions */
|
||||
char *strndup(const char *s, size_t len);
|
||||
const char *strcasestr(const char *haystack, const char *needle);
|
||||
#endif /* !_GNU_SOURCE */
|
||||
|
||||
#endif /* STRING_FUNC_H */
|
||||
|
Reference in New Issue
Block a user