Added a few lines at beginning, to define strnlen for Macs or else building will result in the following : "error:'strnlen' was not declared in this scope". Was able to successfully compile the latest version on a Mac after adding this.

This commit is contained in:
mightymarc
2011-03-01 20:23:08 +08:00
committed by Siana Gearz
parent b73a9b9a34
commit 74d42ec740

View File

@@ -120,6 +120,15 @@
using namespace LLVOAvatarDefines;
// for macs
#if LL_DARWIN
size_t strnlen(const char *s, size_t n)
{
const char *p = (const char *)memchr(s, 0, n);
return(p ? p-s : n);
}
#endif
//-----------------------------------------------------------------------------
// Global constants
//-----------------------------------------------------------------------------