1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:53:51 +00:00

fix for string.h: use our own strnlen only on OS X < 10.7

This commit is contained in:
Nikolay Kasyanov 2012-02-25 17:43:30 +04:00
parent 3875c0f97a
commit cb780720bb

View file

@ -3,7 +3,7 @@
#define _STRING_WRAPPER_H #define _STRING_WRAPPER_H
#include <string.h> #include <string.h>
#if defined(__APPLE__) || defined(__MINGW32__) #if (defined(__APPLE__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) || defined(__MINGW32__)
// need our own implementation of strnlen // need our own implementation of strnlen
static size_t strnlen(const char *s, size_t n) static size_t strnlen(const char *s, size_t n)
{ {