summaryrefslogtreecommitdiff
path: root/include/SDL_stdinc.h
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2006-07-13 08:13:02 +0000
committerSam Lantinga <slouken@libsdl.org>2006-07-13 08:13:02 +0000
commit9cbad57c92a2c39bc6aa08988c559a93cfaf10b2 (patch)
tree89f6637651166b37b1d737812f08c2ab87a6a8b4 /include/SDL_stdinc.h
parentddce62b162b64c8eebc4dd3655483a0523b94e0e (diff)
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
Diffstat (limited to 'include/SDL_stdinc.h')
-rw-r--r--include/SDL_stdinc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h
index 83c8ef27..812a435f 100644
--- a/include/SDL_stdinc.h
+++ b/include/SDL_stdinc.h
@@ -413,6 +413,12 @@ extern DECLSPEC int SDLCALL SDL_memcmp(const void *s1, const void *s2,
extern DECLSPEC size_t SDLCALL SDL_strlen(const char *string);
#endif
+#ifdef HAVE_WCSLEN
+#define SDL_wcslen wcslen
+#else
+extern DECLSPEC size_t SDLCALL SDL_wcslen(const wchar_t *string);
+#endif
+
#ifdef HAVE_STRLCPY
#define SDL_strlcpy strlcpy
#else