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:
parent
3875c0f97a
commit
cb780720bb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue