Skip to content

Commit

Permalink
Unbreak build with gcc on macOS
Browse files Browse the repository at this point in the history
Closes: #462
(cherry picked from commit 30b30df)
  • Loading branch information
barracuda156 authored and slouken committed Aug 13, 2024
1 parent 0000fb0 commit 41ed75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IMG_webp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 41ed75f

Please sign in to comment.