1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 01:19:11 +00:00

(svn r22889) -Fix [FS#4751]: [OSX] MacOSX 10.7 knows already about strndup (leecbaker)

This commit is contained in:
planetmaker
2011-09-04 11:28:43 +00:00
parent a3eb319415
commit 5188587a04

View File

@@ -195,7 +195,7 @@ static inline bool IsWhitespace(WChar c)
#endif #endif
/* strndup is a GNU extension */ /* 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 # undef DEFINE_STRNDUP
#else #else
# define DEFINE_STRNDUP # define DEFINE_STRNDUP