Win32 fixes

This commit is contained in:
Sam Lantinga
2006-03-13 02:06:33 +00:00
parent b23eae2079
commit 2b03f1c722
7 changed files with 10 additions and 11 deletions

View File

@@ -401,7 +401,7 @@ size_t SDL_iconv(SDL_iconv_t cd,
if ( srclen < 2 ) {
return SDL_ICONV_EINVAL;
}
p = src;
p = (Uint8 *)src;
W2 = ((Uint32)p[0] << 8) |
(Uint32)p[1];
src += 2;
@@ -442,7 +442,7 @@ size_t SDL_iconv(SDL_iconv_t cd,
if ( srclen < 2 ) {
return SDL_ICONV_EINVAL;
}
p = src;
p = (Uint8 *)src;
W2 = ((Uint32)p[1] << 8) |
(Uint32)p[0];
src += 2;

View File

@@ -661,7 +661,7 @@ int SDL_strncmp(const char *str1, const char *str2, size_t maxlen)
}
#endif
#if !defined(HAVE_STRCASECMP) && !defined(HAVE_STRICMP)
#if !defined(HAVE_STRCASECMP) && !defined(HAVE__STRICMP)
int SDL_strcasecmp(const char *str1, const char *str2)
{
char a = 0;