Removed libc dependency on Windows again, to fix building with Visual C++ 2005 Express Edition.

Fixed performance problem with testsprite2 on the D3D driver.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401946
This commit is contained in:
Sam Lantinga 2006-07-13 08:13:02 +00:00
parent ddce62b162
commit 9cbad57c92
7 changed files with 35 additions and 11 deletions

View file

@ -336,6 +336,18 @@ SDL_strlen(const char *string)
}
#endif
#ifndef HAVE_WCSLEN
size_t
SDL_wcslen(const wchar_t *string)
{
size_t len = 0;
while (*string++) {
++len;
}
return len;
}
#endif
#ifndef HAVE_STRLCPY
size_t
SDL_strlcpy(char *dst, const char *src, size_t maxlen)