patch-src_string_func_h 812 B

1234567891011121314
  1. $OpenBSD: patch-src_string_func_h,v 1.3 2015/04/15 01:39:16 bentley Exp $
  2. Don't use openttd's internal copy of strcasestr().
  3. --- src/string_func.h.orig Thu Apr 2 21:51:26 2015
  4. +++ src/string_func.h Thu Apr 2 21:54:19 2015
  5. @@ -250,7 +250,7 @@ static inline bool IsWhitespace(WChar c)
  6. #endif
  7. /* strcasestr is available for _GNU_SOURCE, BSD and some Apple */
  8. -#if defined(_GNU_SOURCE) || (defined(__BSD_VISIBLE) && __BSD_VISIBLE) || (defined(__APPLE__) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))) || defined(_NETBSD_SOURCE)
  9. +#if defined(_GNU_SOURCE) || (defined(__BSD_VISIBLE) && __BSD_VISIBLE) || (defined(__APPLE__) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))) || defined(_NETBSD_SOURCE) || defined(__OpenBSD__)
  10. # undef DEFINE_STRCASESTR
  11. #else
  12. # define DEFINE_STRCASESTR