mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 08:36:19 -05:00
Removed libc dependency on Windows again, to fix building with Visual C++ 2005 Express Edition.
Fixed performance problem with testsprite2 on the D3D driver.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user