Mercurial > hg > openttd
changeset 18070:32cf313565ba draft
(svn r22889) -Fix [FS#4751]: [OSX] MacOSX 10.7 knows already about strndup (leecbaker)
author | planetmaker <planetmaker@openttd.org> |
---|---|
date | Sun, 04 Sep 2011 11:28:43 +0000 |
parents | 5ef9035457ec |
children | bc29668c71a8 |
files | src/string_func.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/string_func.h +++ b/src/string_func.h @@ -195,7 +195,7 @@ #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