This patch is used to fix the return statement which is not at the good place and add the function synopsis in the header.
--- wrlib/imgformat.h | 4 ++++ wrlib/load.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wrlib/imgformat.h b/wrlib/imgformat.h index 29ad413..9e739d8 100644 --- a/wrlib/imgformat.h +++ b/wrlib/imgformat.h @@ -69,6 +69,10 @@ RImage *RLoadJPEG(const char *file); RImage *RLoadGIF(const char *file, int index); #endif +#ifdef USE_WEBP +RImage *RLoadWEBP(const char *file, int index); +#endif + /* * Function for Saving in a specific format */ diff --git a/wrlib/load.c b/wrlib/load.c index e834c9e..6ad2a3d 100644 --- a/wrlib/load.c +++ b/wrlib/load.c @@ -356,10 +356,8 @@ static WRImgFormat identFile(const char *path) #else (buffer[15] == ' ' || buffer[15] == 'X' || buffer[15] == 'L')) #endif + return IM_WEBP; #endif - return IM_WEBP; - - return IM_UNKNOWN; } -- 1.8.3.2
0001-Fixed-WEBP-image-detection.patch
Description: Binary data
