IMG_xv.c
changeset 343 5bf0f0d6a74e
parent 280 ec4ae96c100c
child 347 ad5034cad524
     1.1 --- a/IMG_xv.c	Sun Jan 27 15:55:03 2013 -0800
     1.2 +++ b/IMG_xv.c	Sun Feb 03 08:37:28 2013 -0800
     1.3 @@ -57,19 +57,19 @@
     1.4  
     1.5  	/* Check the header magic */
     1.6  	if ( (get_line(src, line, sizeof(line)) < 0) ||
     1.7 -	     (memcmp(line, "P7 332", 6) != 0) ) {
     1.8 +	     (SDL_memcmp(line, "P7 332", 6) != 0) ) {
     1.9  		return -1;
    1.10  	}
    1.11  
    1.12  	/* Read the header */
    1.13  	while ( get_line(src, line, sizeof(line)) == 0 ) {
    1.14 -		if ( memcmp(line, "#BUILTIN:", 9) == 0 ) {
    1.15 +		if ( SDL_memcmp(line, "#BUILTIN:", 9) == 0 ) {
    1.16  			/* Builtin image, no data */
    1.17  			break;
    1.18  		}
    1.19 -		if ( memcmp(line, "#END_OF_COMMENTS", 16) == 0 ) {
    1.20 +		if ( SDL_memcmp(line, "#END_OF_COMMENTS", 16) == 0 ) {
    1.21  			if ( get_line(src, line, sizeof(line)) == 0 ) {
    1.22 -				sscanf(line, "%d %d", w, h);
    1.23 +				SDL_sscanf(line, "%d %d", w, h);
    1.24  				if ( *w >= 0 && *h >= 0 ) {
    1.25  					return 0;
    1.26  				}
    1.27 @@ -84,7 +84,7 @@
    1.28  /* See if an image is contained in a data source */
    1.29  int IMG_isXV(SDL_RWops *src)
    1.30  {
    1.31 -	int start;
    1.32 +	Sint64 start;
    1.33  	int is_XV;
    1.34  	int w, h;
    1.35  
    1.36 @@ -102,7 +102,7 @@
    1.37  /* Load a XV thumbnail image from an SDL datasource */
    1.38  SDL_Surface *IMG_LoadXV_RW(SDL_RWops *src)
    1.39  {
    1.40 -	int start;
    1.41 +	Sint64 start;
    1.42  	const char *error = NULL;
    1.43  	SDL_Surface *surface = NULL;
    1.44  	int w, h;