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:
Sam Lantinga
2006-07-13 08:13:02 +00:00
parent c5d19656cd
commit f3567e6d90
7 changed files with 35 additions and 11 deletions

View File

@@ -64,7 +64,7 @@ typedef unsigned int uintptr_t;
#define SDL_HAS_64BIT_TYPE 1
/* Enabled for SDL 1.2 (binary compatibility) */
#define HAVE_LIBC 1
//#define HAVE_LIBC 1
#ifdef HAVE_LIBC
/* Useful headers */
#define HAVE_STDIO_H 1

View File

@@ -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