Skip to content

Commit

Permalink
Fixed warnings building under Android
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 7, 2013
1 parent b8e4cd5 commit d7eed99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion IMG_png.c
Expand Up @@ -496,7 +496,7 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src)

/* Create the array of pointers to image data */
row_pointers = (png_bytep*) SDL_malloc(sizeof(png_bytep)*height);
if ( (row_pointers == NULL) ) {
if (!row_pointers) {
error = "Out of memory";
goto done;
}
Expand Down
1 change: 1 addition & 0 deletions external/jpeg-9/jmem-android.c
Expand Up @@ -18,6 +18,7 @@
#include "jinclude.h"
#include "jpeglib.h"
#include "jmemsys.h" /* import the system-dependent declarations */
#include <unistd.h> /* For unlink() and getpid() */

#ifndef HAVE_STDLIB_H /* <stdlib.h> should declare malloc(),free() */
extern void * malloc JPP((size_t size));
Expand Down

0 comments on commit d7eed99

Please sign in to comment.