diff options
Diffstat (limited to 'src')
-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 |