From cb780720bba5391cfb1e178851431353aee15d0d Mon Sep 17 00:00:00 2001 From: Nikolay Kasyanov Date: Sat, 25 Feb 2012 17:43:30 +0400 Subject: [PATCH] fix for string.h: use our own strnlen only on OS X < 10.7 --- libs/platform/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/platform/string.h b/libs/platform/string.h index d4302ae783..89ac141a89 100644 --- a/libs/platform/string.h +++ b/libs/platform/string.h @@ -3,7 +3,7 @@ #define _STRING_WRAPPER_H #include -#if defined(__APPLE__) || defined(__MINGW32__) +#if (defined(__APPLE__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) || defined(__MINGW32__) // need our own implementation of strnlen static size_t strnlen(const char *s, size_t n) {