diff --git a/src/IMG_webp.c b/src/IMG_webp.c index 3284df1c..df30eb10 100644 --- a/src/IMG_webp.c +++ b/src/IMG_webp.c @@ -71,11 +71,11 @@ static struct { if (lib.FUNC == NULL) { IMG_SetError("Missing webpdemux.framework"); return -1; } #endif -int IMG_InitWEBP() #ifdef __APPLE__ /* Need to turn off optimizations so weak framework load check works */ __attribute__ ((optnone)) #endif +int IMG_InitWEBP() { if (lib.loaded == 0) { #if defined(LOAD_WEBP_DYNAMIC) && defined(LOAD_WEBPDEMUX_DYNAMIC)