Mercurial > sdl-ios-xcode
diff src/video/SDL_bmp.c @ 1336:3692456e7b0f
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...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 06:59:48 +0000 |
parents | 450721ad5436 |
children | c71e05b4dc2e |
line wrap: on
line diff
--- a/src/video/SDL_bmp.c Mon Feb 06 17:28:04 2006 +0000 +++ b/src/video/SDL_bmp.c Tue Feb 07 06:59:48 2006 +0000 @@ -98,7 +98,7 @@ 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 @@ } /* Check for read error */ - if ( strcmp(SDL_GetError(), "") != 0 ) { + if ( SDL_strcmp(SDL_GetError(), "") != 0 ) { was_error = 1; goto done; } @@ -519,7 +519,7 @@ if ( freedst && dst ) { SDL_RWclose(dst); } - return((strcmp(SDL_GetError(), "") == 0) ? 0 : -1); + return((SDL_strcmp(SDL_GetError(), "") == 0) ? 0 : -1); } #endif /* ENABLE_FILE */