diff options
author | planetmaker <planetmaker@openttd.org> | 2011-09-04 11:28:43 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2011-09-04 11:28:43 +0000 |
commit | 5188587a044a89fe1c9e27a2925536c990fdcc9d (patch) | |
tree | bf339739f708055ebdce0ba40dcee9a61b3e8c93 | |
parent | a3eb31941534d9fa6b36411d260565808ad58a46 (diff) | |
download | openttd-5188587a044a89fe1c9e27a2925536c990fdcc9d.tar.xz |
(svn r22889) -Fix [FS#4751]: [OSX] MacOSX 10.7 knows already about strndup (leecbaker)
-rw-r--r-- | src/string_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_func.h b/src/string_func.h index 6b86dccf5..b3d8a6219 100644 --- a/src/string_func.h +++ b/src/string_func.h @@ -195,7 +195,7 @@ static inline bool IsWhitespace(WChar c) #endif /* strndup is a GNU extension */ -#if defined(_GNU_SOURCE) || (defined(__NetBSD_Version__) && 400000000 <= __NetBSD_Version__) || (defined(__FreeBSD_version) && 701101 <= __FreeBSD_version) +#if defined(_GNU_SOURCE) || (defined(__NetBSD_Version__) && 400000000 <= __NetBSD_Version__) || (defined(__FreeBSD_version) && 701101 <= __FreeBSD_version) || (defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L) # undef DEFINE_STRNDUP #else # define DEFINE_STRNDUP |