We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5296

Summary: Compilation error with clang 12.0.0 due to missing include
Product: SDL_mixer Reporter: kreeblah
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: 1.2.12   
Hardware: x86_64   
OS: macOS 10.15   
Attachments: Fixes compilation error due to missing include in mixer.c

Description kreeblah 2020-09-23 00:35:59 UTC
Created attachment 4468 [details]
Fixes compilation error due to missing include in mixer.c

Compilation fails in clang 12.0.0 on mixer.c due to a missing include:

mixer.c:153:46: error: implicit declaration of function 'Mix_InitFluidSynth' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
                if ((initialized & MIX_INIT_FLUIDSYNTH) || Mix_InitFluid...
                                                           ^
mixer.c:205:3: error: implicit declaration of function 'Mix_QuitFluidSynth' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
                Mix_QuitFluidSynth();
                ^
It looks like dynamic_fluidsynth.h should have been included as well, so this patch adds that.
Comment 1 Ozkan Sezer 2020-09-23 02:32:16 UTC
Fixed. Thanks.
https://hg.libsdl.org/SDL_mixer/rev/33a3817d1066