src/stdlib/SDL_string.c
changeset 1901 f1828a500391
parent 1895 c121d94672cb
child 1903 f132024010be
--- a/src/stdlib/SDL_string.c	Wed Jul 12 09:25:17 2006 +0000
+++ b/src/stdlib/SDL_string.c	Thu Jul 13 08:13:02 2006 +0000
@@ -336,6 +336,18 @@
 }
 #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)