SDL_image2.0.0 is incompatible with SDL2.0.4

test env: Windows 7 64bit, Android NDK r10d

SDL_image 2.0.0

build with SDL 2.0.3 success.

build with SDL 2.0.4 RC2 and SDL 2.0.4 9783, both fail.

fail reason: SDL_SetError definition has been changed.

fail log:

Code:


[armeabi-v7a] SharedLibrary : libSDL2.so
[armeabi-v7a] Install : libSDL2.so => libs/armeabi-v7a/libSDL2.so
[armeabi-v7a] Compile thumb : SDL2_image <= IMG.c
[armeabi-v7a] Compile thumb : SDL2_image <= IMG_bmp.c
[armeabi-v7a] Compile thumb : SDL2_image <= IMG_gif.c
[armeabi-v7a] Compile thumb : SDL2_image <= IMG_jpg.c
[armeabi-v7a] Compile thumb : SDL2_image <= IMG_lbm.c
SDL2_image/IMG_lbm.c: In function ‘IMG_LoadLBM_RW’:
SDL2_image/IMG_lbm.c:479:9: error: format not a string literal and no format arg
uments [-Werror=format-security]
IMG_SetError( error );
^
cc1.exe: some warnings being treated as errors
make.exe: *** [obj/local/armeabi-v7a/objs/SDL2_image/IMG_lbm.o] Error 1

Both IMG_lbm.c and IMG_png.c failed for this error.