forked from teamnwah/openmw-tes3coop
fix for string.h: use our own strnlen only on OS X < 10.7
This commit is contained in:
parent
3875c0f97a
commit
cb780720bb
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
#define _STRING_WRAPPER_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
|
||||
static size_t strnlen(const char *s, size_t n)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue