Use SDL_ prefixed versions of C library functions.
FIXME: Change #include <stdlib.h> to #include "SDL_stdlib.h" Change #include <string.h> to #include "SDL_string.h" Make sure nothing else broke because of this... --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401340
This commit is contained in:
parent
00f6d8e5e3
commit
5d53175e4d
212 changed files with 1840 additions and 1884 deletions
|
@ -98,7 +98,7 @@ SDL_Surface * SDL_LoadBMP_RW (SDL_RWops *src, int freesrc)
|
|||
was_error = 1;
|
||||
goto done;
|
||||
}
|
||||
if ( strncmp(magic, "BM", 2) != 0 ) {
|
||||
if ( SDL_strncmp(magic, "BM", 2) != 0 ) {
|
||||
SDL_SetError("File is not a Windows BMP file");
|
||||
was_error = 1;
|
||||
goto done;
|
||||
|
@ -135,7 +135,7 @@ SDL_Surface * SDL_LoadBMP_RW (SDL_RWops *src, int freesrc)
|
|||
}
|
||||
|
||||
/* Check for read error */
|
||||
if ( strcmp(SDL_GetError(), "") != 0 ) {
|
||||
if ( SDL_strcmp(SDL_GetError(), "") != 0 ) {
|
||||
was_error = 1;
|
||||
goto done;
|
||||
}
|
||||
|
@ -519,7 +519,7 @@ int SDL_SaveBMP_RW (SDL_Surface *saveme, SDL_RWops *dst, int freedst)
|
|||
if ( freedst && dst ) {
|
||||
SDL_RWclose(dst);
|
||||
}
|
||||
return((strcmp(SDL_GetError(), "") == 0) ? 0 : -1);
|
||||
return((SDL_strcmp(SDL_GetError(), "") == 0) ? 0 : -1);
|
||||
}
|
||||
|
||||
#endif /* ENABLE_FILE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue