1234567891011121314 |
- $OpenBSD: patch-src_string_func_h,v 1.3 2015/04/15 01:39:16 bentley Exp $
- Don't use openttd's internal copy of strcasestr().
- --- src/string_func.h.orig Thu Apr 2 21:51:26 2015
- +++ src/string_func.h Thu Apr 2 21:54:19 2015
- @@ -250,7 +250,7 @@ static inline bool IsWhitespace(WChar c)
- #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)
- +#if defined(_GNU_SOURCE) || (defined(__BSD_VISIBLE) && __BSD_VISIBLE) || (defined(__APPLE__) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))) || defined(_NETBSD_SOURCE) || defined(__OpenBSD__)
- # undef DEFINE_STRCASESTR
- #else
- # define DEFINE_STRCASESTR
|