SDL_mixer: Renamed DECLSPEC to SDL_DECLSPEC

From 4ed68d19e98d7eecdd10eb15166ffa2d8a0991ef Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 17 May 2024 17:36:34 -0700
Subject: [PATCH] Renamed DECLSPEC to SDL_DECLSPEC

---
 external/SDL                   |   2 +-
 include/SDL3_mixer/SDL_mixer.h | 196 ++++++++++++++++-----------------
 2 files changed, 99 insertions(+), 99 deletions(-)

diff --git a/external/SDL b/external/SDL
index 961488b0..6f262143 160000
--- a/external/SDL
+++ b/external/SDL
@@ -1 +1 @@
-Subproject commit 961488b0dc992365adcc7f9c668da5e62afa3e00
+Subproject commit 6f2621438a65abae114a7210914352b4c1d9c6c3
diff --git a/include/SDL3_mixer/SDL_mixer.h b/include/SDL3_mixer/SDL_mixer.h
index c371b925..1b356b09 100644
--- a/include/SDL3_mixer/SDL_mixer.h
+++ b/include/SDL3_mixer/SDL_mixer.h
@@ -65,7 +65,7 @@ extern "C" {
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_Version(void);
+extern SDL_DECLSPEC int SDLCALL Mix_Version(void);
 
 /**
  * Initialization flags
@@ -148,7 +148,7 @@ typedef enum MIX_InitFlags
  *
  * \sa Mix_Quit
  */
-extern DECLSPEC int SDLCALL Mix_Init(int flags);
+extern SDL_DECLSPEC int SDLCALL Mix_Init(int flags);
 
 /**
  * Deinitialize SDL_mixer.
@@ -173,7 +173,7 @@ extern DECLSPEC int SDLCALL Mix_Init(int flags);
  *
  * \sa Mix_Init
  */
-extern DECLSPEC void SDLCALL Mix_Quit(void);
+extern SDL_DECLSPEC void SDLCALL Mix_Quit(void);
 
 
 /**
@@ -285,7 +285,7 @@ typedef struct _Mix_Music Mix_Music;
  * \sa Mix_CloseAudio
  * \sa Mix_QuerySpec
  */
-extern DECLSPEC int SDLCALL Mix_OpenAudio(SDL_AudioDeviceID devid, const SDL_AudioSpec *spec);
+extern SDL_DECLSPEC int SDLCALL Mix_OpenAudio(SDL_AudioDeviceID devid, const SDL_AudioSpec *spec);
 
 /**
  * Suspend or resume the whole audio output.
@@ -294,7 +294,7 @@ extern DECLSPEC int SDLCALL Mix_OpenAudio(SDL_AudioDeviceID devid, const SDL_Aud
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC void SDLCALL Mix_PauseAudio(int pause_on);
+extern SDL_DECLSPEC void SDLCALL Mix_PauseAudio(int pause_on);
 
 /**
  * Find out what the actual audio device parameters are.
@@ -317,7 +317,7 @@ extern DECLSPEC void SDLCALL Mix_PauseAudio(int pause_on);
  *
  * \sa Mix_OpenAudio
  */
-extern DECLSPEC int SDLCALL Mix_QuerySpec(int *frequency, Uint16 *format, int *channels);
+extern SDL_DECLSPEC int SDLCALL Mix_QuerySpec(int *frequency, Uint16 *format, int *channels);
 
 /**
  * Dynamically change the number of channels managed by the mixer.
@@ -349,7 +349,7 @@ extern DECLSPEC int SDLCALL Mix_QuerySpec(int *frequency, Uint16 *format, int *c
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_AllocateChannels(int numchans);
+extern SDL_DECLSPEC int SDLCALL Mix_AllocateChannels(int numchans);
 
 /**
  * Load a supported audio format into a chunk.
@@ -391,7 +391,7 @@ extern DECLSPEC int SDLCALL Mix_AllocateChannels(int numchans);
  * \sa Mix_LoadWAV
  * \sa Mix_FreeChunk
  */
-extern DECLSPEC Mix_Chunk * SDLCALL Mix_LoadWAV_IO(SDL_IOStream *src, SDL_bool closeio);
+extern SDL_DECLSPEC Mix_Chunk * SDLCALL Mix_LoadWAV_IO(SDL_IOStream *src, SDL_bool closeio);
 
 /**
  * Load a supported audio format into a chunk.
@@ -432,7 +432,7 @@ extern DECLSPEC Mix_Chunk * SDLCALL Mix_LoadWAV_IO(SDL_IOStream *src, SDL_bool c
  * \sa Mix_LoadWAV_IO
  * \sa Mix_FreeChunk
  */
-extern DECLSPEC Mix_Chunk * SDLCALL Mix_LoadWAV(const char *file);
+extern SDL_DECLSPEC Mix_Chunk * SDLCALL Mix_LoadWAV(const char *file);
 
 
 /**
@@ -463,7 +463,7 @@ extern DECLSPEC Mix_Chunk * SDLCALL Mix_LoadWAV(const char *file);
  *
  * \sa Mix_FreeMusic
  */
-extern DECLSPEC Mix_Music * SDLCALL Mix_LoadMUS(const char *file);
+extern SDL_DECLSPEC Mix_Music * SDLCALL Mix_LoadMUS(const char *file);
 
 /**
  * Load a supported audio format into a music object.
@@ -507,7 +507,7 @@ extern DECLSPEC Mix_Music * SDLCALL Mix_LoadMUS(const char *file);
  *
  * \sa Mix_FreeMusic
  */
-extern DECLSPEC Mix_Music * SDLCALL Mix_LoadMUS_IO(SDL_IOStream *src, SDL_bool closeio);
+extern SDL_DECLSPEC Mix_Music * SDLCALL Mix_LoadMUS_IO(SDL_IOStream *src, SDL_bool closeio);
 
 /**
  * Load an audio format into a music object, assuming a specific format.
@@ -564,7 +564,7 @@ extern DECLSPEC Mix_Music * SDLCALL Mix_LoadMUS_IO(SDL_IOStream *src, SDL_bool c
  *
  * \sa Mix_FreeMusic
  */
-extern DECLSPEC Mix_Music * SDLCALL Mix_LoadMUSType_IO(SDL_IOStream *src, Mix_MusicType type, SDL_bool closeio);
+extern SDL_DECLSPEC Mix_Music * SDLCALL Mix_LoadMUSType_IO(SDL_IOStream *src, Mix_MusicType type, SDL_bool closeio);
 
 /**
  * Load a WAV file from memory as quickly as possible.
@@ -599,7 +599,7 @@ extern DECLSPEC Mix_Music * SDLCALL Mix_LoadMUSType_IO(SDL_IOStream *src, Mix_Mu
  * \sa Mix_LoadWAV_IO
  * \sa Mix_FreeChunk
  */
-extern DECLSPEC Mix_Chunk * SDLCALL Mix_QuickLoad_WAV(Uint8 *mem);
+extern SDL_DECLSPEC Mix_Chunk * SDLCALL Mix_QuickLoad_WAV(Uint8 *mem);
 
 /**
  * Load a raw audio data from memory as quickly as possible.
@@ -619,7 +619,7 @@ extern DECLSPEC Mix_Chunk * SDLCALL Mix_QuickLoad_WAV(Uint8 *mem);
  *
  * \sa Mix_FreeChunk
  */
-extern DECLSPEC Mix_Chunk * SDLCALL Mix_QuickLoad_RAW(Uint8 *mem, Uint32 len);
+extern SDL_DECLSPEC Mix_Chunk * SDLCALL Mix_QuickLoad_RAW(Uint8 *mem, Uint32 len);
 
 /**
  * Free an audio chunk.
@@ -640,7 +640,7 @@ extern DECLSPEC Mix_Chunk * SDLCALL Mix_QuickLoad_RAW(Uint8 *mem, Uint32 len);
  * \sa Mix_QuickLoad_WAV
  * \sa Mix_QuickLoad_RAW
  */
-extern DECLSPEC void SDLCALL Mix_FreeChunk(Mix_Chunk *chunk);
+extern SDL_DECLSPEC void SDLCALL Mix_FreeChunk(Mix_Chunk *chunk);
 
 /**
  * Free a music object.
@@ -659,7 +659,7 @@ extern DECLSPEC void SDLCALL Mix_FreeChunk(Mix_Chunk *chunk);
  * \sa Mix_LoadMUS_IO
  * \sa Mix_LoadMUSType_IO
  */
-extern DECLSPEC void SDLCALL Mix_FreeMusic(Mix_Music *music);
+extern SDL_DECLSPEC void SDLCALL Mix_FreeMusic(Mix_Music *music);
 
 /**
  * Get a list of chunk decoders that this build of SDL_mixer provides.
@@ -683,7 +683,7 @@ extern DECLSPEC void SDLCALL Mix_FreeMusic(Mix_Music *music);
  * \sa Mix_GetChunkDecoder
  * \sa Mix_HasChunkDecoder
  */
-extern DECLSPEC int SDLCALL Mix_GetNumChunkDecoders(void);
+extern SDL_DECLSPEC int SDLCALL Mix_GetNumChunkDecoders(void);
 
 /**
  * Get a chunk decoder's name.
@@ -704,7 +704,7 @@ extern DECLSPEC int SDLCALL Mix_GetNumChunkDecoders(void);
  *
  * \sa Mix_GetNumChunkDecoders
  */
-extern DECLSPEC const char * SDLCALL Mix_GetChunkDecoder(int index);
+extern SDL_DECLSPEC const char * SDLCALL Mix_GetChunkDecoder(int index);
 
 /**
  * Check if a chunk decoder is available by name.
@@ -727,7 +727,7 @@ extern DECLSPEC const char * SDLCALL Mix_GetChunkDecoder(int index);
  * \sa Mix_GetNumChunkDecoders
  * \sa Mix_GetChunkDecoder
  */
-extern DECLSPEC SDL_bool SDLCALL Mix_HasChunkDecoder(const char *name);
+extern SDL_DECLSPEC SDL_bool SDLCALL Mix_HasChunkDecoder(const char *name);
 
 /**
  * Get a list of music decoders that this build of SDL_mixer provides.
@@ -751,7 +751,7 @@ extern DECLSPEC SDL_bool SDLCALL Mix_HasChunkDecoder(const char *name);
  * \sa Mix_GetMusicDecoder
  * \sa Mix_HasMusicDecoder
  */
-extern DECLSPEC int SDLCALL Mix_GetNumMusicDecoders(void);
+extern SDL_DECLSPEC int SDLCALL Mix_GetNumMusicDecoders(void);
 
 /**
  * Get a music decoder's name.
@@ -772,7 +772,7 @@ extern DECLSPEC int SDLCALL Mix_GetNumMusicDecoders(void);
  *
  * \sa Mix_GetNumMusicDecoders
  */
-extern DECLSPEC const char * SDLCALL Mix_GetMusicDecoder(int index);
+extern SDL_DECLSPEC const char * SDLCALL Mix_GetMusicDecoder(int index);
 
 /**
  * Check if a music decoder is available by name.
@@ -795,7 +795,7 @@ extern DECLSPEC const char * SDLCALL Mix_GetMusicDecoder(int index);
  * \sa Mix_GetNumMusicDecoders
  * \sa Mix_GetMusicDecoder
  */
-extern DECLSPEC SDL_bool SDLCALL Mix_HasMusicDecoder(const char *name);
+extern SDL_DECLSPEC SDL_bool SDLCALL Mix_HasMusicDecoder(const char *name);
 
 /**
  * Find out the format of a mixer music.
@@ -809,7 +809,7 @@ extern DECLSPEC SDL_bool SDLCALL Mix_HasMusicDecoder(const char *name);
  *
  * \since This function is available since SDL_mixer 3.0.0
  */
-extern DECLSPEC Mix_MusicType SDLCALL Mix_GetMusicType(const Mix_Music *music);
+extern SDL_DECLSPEC Mix_MusicType SDLCALL Mix_GetMusicType(const Mix_Music *music);
 
 /**
  * Get the title for a music object, or its filename.
@@ -839,7 +839,7 @@ extern DECLSPEC Mix_MusicType SDLCALL Mix_GetMusicType(const Mix_Music *music);
  * \sa Mix_GetMusicAlbumTag
  * \sa Mix_GetMusicCopyrightTag
  */
-extern DECLSPEC const char *SDLCALL Mix_GetMusicTitle(const Mix_Music *music);
+extern SDL_DECLSPEC const char *SDLCALL Mix_GetMusicTitle(const Mix_Music *music);
 
 /**
  * Get the title for a music object.
@@ -866,7 +866,7 @@ extern DECLSPEC const char *SDLCALL Mix_GetMusicTitle(const Mix_Music *music);
  * \sa Mix_GetMusicAlbumTag
  * \sa Mix_GetMusicCopyrightTag
  */
-extern DECLSPEC const char *SDLCALL Mix_GetMusicTitleTag(const Mix_Music *music);
+extern SDL_DECLSPEC const char *SDLCALL Mix_GetMusicTitleTag(const Mix_Music *music);
 
 /**
  * Get the artist name for a music object.
@@ -888,7 +888,7 @@ extern DECLSPEC const char *SDLCALL Mix_GetMusicTitleTag(const Mix_Music *music)
  * \sa Mix_GetMusicAlbumTag
  * \sa Mix_GetMusicCopyrightTag
  */
-extern DECLSPEC const char *SDLCALL Mix_GetMusicArtistTag(const Mix_Music *music);
+extern SDL_DECLSPEC const char *SDLCALL Mix_GetMusicArtistTag(const Mix_Music *music);
 
 /**
  * Get the album name for a music object.
@@ -910,7 +910,7 @@ extern DECLSPEC const char *SDLCALL Mix_GetMusicArtistTag(const Mix_Music *music
  * \sa Mix_GetMusicArtistTag
  * \sa Mix_GetMusicCopyrightTag
  */
-extern DECLSPEC const char *SDLCALL Mix_GetMusicAlbumTag(const Mix_Music *music);
+extern SDL_DECLSPEC const char *SDLCALL Mix_GetMusicAlbumTag(const Mix_Music *music);
 
 /**
  * Get the copyright text for a music object.
@@ -932,7 +932,7 @@ extern DECLSPEC const char *SDLCALL Mix_GetMusicAlbumTag(const Mix_Music *music)
  * \sa Mix_GetMusicArtistTag
  * \sa Mix_GetMusicAlbumTag
  */
-extern DECLSPEC const char *SDLCALL Mix_GetMusicCopyrightTag(const Mix_Music *music);
+extern SDL_DECLSPEC const char *SDLCALL Mix_GetMusicCopyrightTag(const Mix_Music *music);
 
 /**
  * Set a function that is called after all mixing is performed.
@@ -970,7 +970,7 @@ extern DECLSPEC const char *SDLCALL Mix_GetMusicCopyrightTag(const Mix_Music *mu
  *
  * \sa Mix_HookMusic
  */
-extern DECLSPEC void SDLCALL Mix_SetPostMix(void (SDLCALL *mix_func)(void *udata, Uint8 *stream, int len), void *arg);
+extern SDL_DECLSPEC void SDLCALL Mix_SetPostMix(void (SDLCALL *mix_func)(void *udata, Uint8 *stream, int len), void *arg);
 
 /**
  * Add your own music player or additional mixer function.
@@ -1016,7 +1016,7 @@ extern DECLSPEC void SDLCALL Mix_SetPostMix(void (SDLCALL *mix_func)(void *udata
  *
  * \sa Mix_SetPostMix
  */
-extern DECLSPEC void SDLCALL Mix_HookMusic(void (SDLCALL *mix_func)(void *udata, Uint8 *stream, int len), void *arg);
+extern SDL_DECLSPEC void SDLCALL Mix_HookMusic(void (SDLCALL *mix_func)(void *udata, Uint8 *stream, int len), void *arg);
 
 /**
  * Set a callback that runs when a music object has stopped playing.
@@ -1041,7 +1041,7 @@ extern DECLSPEC void SDLCALL Mix_HookMusic(void (SDLCALL *mix_func)(void *udata,
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC void SDLCALL Mix_HookMusicFinished(void (SDLCALL *music_finished)(void));
+extern SDL_DECLSPEC void SDLCALL Mix_HookMusicFinished(void (SDLCALL *music_finished)(void));
 
 /**
  * Get a pointer to the user data for the current music hook.
@@ -1053,7 +1053,7 @@ extern DECLSPEC void SDLCALL Mix_HookMusicFinished(void (SDLCALL *music_finished
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC void * SDLCALL Mix_GetMusicHookData(void);
+extern SDL_DECLSPEC void * SDLCALL Mix_GetMusicHookData(void);
 
 /**
  * Set a callback that runs when a channel has finished playing.
@@ -1075,7 +1075,7 @@ extern DECLSPEC void * SDLCALL Mix_GetMusicHookData(void);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC void SDLCALL Mix_ChannelFinished(void (SDLCALL *channel_finished)(int channel));
+extern SDL_DECLSPEC void SDLCALL Mix_ChannelFinished(void (SDLCALL *channel_finished)(int channel));
 
 /**
  * Magic number for effects to operate on the postmix instead of a channel.
@@ -1178,7 +1178,7 @@ typedef void (SDLCALL *Mix_EffectDone_t)(int chan, void *udata);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_RegisterEffect(int chan, Mix_EffectFunc_t f, Mix_EffectDone_t d, void *arg);
+extern SDL_DECLSPEC int SDLCALL Mix_RegisterEffect(int chan, Mix_EffectFunc_t f, Mix_EffectDone_t d, void *arg);
 
 
 /**
@@ -1203,7 +1203,7 @@ extern DECLSPEC int SDLCALL Mix_RegisterEffect(int chan, Mix_EffectFunc_t f, Mix
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_UnregisterEffect(int channel, Mix_EffectFunc_t f);
+extern SDL_DECLSPEC int SDLCALL Mix_UnregisterEffect(int channel, Mix_EffectFunc_t f);
 
 /**
  * Explicitly unregister all special effect functions.
@@ -1229,7 +1229,7 @@ extern DECLSPEC int SDLCALL Mix_UnregisterEffect(int channel, Mix_EffectFunc_t f
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_UnregisterAllEffects(int channel);
+extern SDL_DECLSPEC int SDLCALL Mix_UnregisterAllEffects(int channel);
 
 /**
  * Environment variable that makes some mixing effects favor speed over
@@ -1291,7 +1291,7 @@ extern DECLSPEC int SDLCALL Mix_UnregisterAllEffects(int channel);
  * \sa Mix_SetPosition
  * \sa Mix_SetDistance
  */
-extern DECLSPEC int SDLCALL Mix_SetPanning(int channel, Uint8 left, Uint8 right);
+extern SDL_DECLSPEC int SDLCALL Mix_SetPanning(int channel, Uint8 left, Uint8 right);
 
 
 /**
@@ -1342,7 +1342,7 @@ extern DECLSPEC int SDLCALL Mix_SetPanning(int channel, Uint8 left, Uint8 right)
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_SetPosition(int channel, Sint16 angle, Uint8 distance);
+extern SDL_DECLSPEC int SDLCALL Mix_SetPosition(int channel, Sint16 angle, Uint8 distance);
 
 
 /**
@@ -1380,7 +1380,7 @@ extern DECLSPEC int SDLCALL Mix_SetPosition(int channel, Sint16 angle, Uint8 dis
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_SetDistance(int channel, Uint8 distance);
+extern SDL_DECLSPEC int SDLCALL Mix_SetDistance(int channel, Uint8 distance);
 
 
 /**
@@ -1414,7 +1414,7 @@ extern DECLSPEC int SDLCALL Mix_SetDistance(int channel, Uint8 distance);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_SetReverseStereo(int channel, int flip);
+extern SDL_DECLSPEC int SDLCALL Mix_SetReverseStereo(int channel, int flip);
 
 /* end of effects API. */
 
@@ -1443,7 +1443,7 @@ extern DECLSPEC int SDLCALL Mix_SetReverseStereo(int channel, int flip);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_ReserveChannels(int num);
+extern SDL_DECLSPEC int SDLCALL Mix_ReserveChannels(int num);
 
 
 /* Channel grouping functions */
@@ -1468,7 +1468,7 @@ extern DECLSPEC int SDLCALL Mix_ReserveChannels(int num);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_GroupChannel(int which, int tag);
+extern SDL_DECLSPEC int SDLCALL Mix_GroupChannel(int which, int tag);
 
 /**
  * Assign several consecutive channels to the same tag.
@@ -1494,7 +1494,7 @@ extern DECLSPEC int SDLCALL Mix_GroupChannel(int which, int tag);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_GroupChannels(int from, int to, int tag);
+extern SDL_DECLSPEC int SDLCALL Mix_GroupChannels(int from, int to, int tag);
 
 /**
  * Finds the first available channel in a group of channels.
@@ -1512,7 +1512,7 @@ extern DECLSPEC int SDLCALL Mix_GroupChannels(int from, int to, int tag);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_GroupAvailable(int tag);
+extern SDL_DECLSPEC int SDLCALL Mix_GroupAvailable(int tag);
 
 /**
  * Returns the number of channels in a group.
@@ -1525,7 +1525,7 @@ extern DECLSPEC int SDLCALL Mix_GroupAvailable(int tag);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_GroupCount(int tag);
+extern SDL_DECLSPEC int SDLCALL Mix_GroupCount(int tag);
 
 /**
  * Find the "oldest" sample playing in a group of channels.
@@ -1543,7 +1543,7 @@ extern DECLSPEC int SDLCALL Mix_GroupCount(int tag);
  *
  * \sa Mix_GroupNewer
  */
-extern DECLSPEC int SDLCALL Mix_GroupOldest(int tag);
+extern SDL_DECLSPEC int SDLCALL Mix_GroupOldest(int tag);
 
 /**
  * Find the "most recent" sample playing in a group of channels.
@@ -1561,7 +1561,7 @@ extern DECLSPEC int SDLCALL Mix_GroupOldest(int tag);
  *
  * \sa Mix_GroupOldest
  */
-extern DECLSPEC int SDLCALL Mix_GroupNewer(int tag);
+extern SDL_DECLSPEC int SDLCALL Mix_GroupNewer(int tag);
 
 /**
  * Play an audio chunk on a specific channel.
@@ -1591,7 +1591,7 @@ extern DECLSPEC int SDLCALL Mix_GroupNewer(int tag);
  *
  * \since This function is available since SDL_mixer 3.0.0
  */
-extern DECLSPEC int SDLCALL Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops);
+extern SDL_DECLSPEC int SDLCALL Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops);
 
 /**
  * Play an audio chunk on a specific channel for a maximum time.
@@ -1624,7 +1624,7 @@ extern DECLSPEC int SDLCALL Mix_PlayChannel(int channel, Mix_Chunk *chunk, int l
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_PlayChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ticks);
+extern SDL_DECLSPEC int SDLCALL Mix_PlayChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ticks);
 
 /**
  * Play a new music object.
@@ -1647,7 +1647,7 @@ extern DECLSPEC int SDLCALL Mix_PlayChannelTimed(int channel, Mix_Chunk *chunk,
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_PlayMusic(Mix_Music *music, int loops);
+extern SDL_DECLSPEC int SDLCALL Mix_PlayMusic(Mix_Music *music, int loops);
 
 /**
  * Play a new music object, fading in the audio.
@@ -1674,7 +1674,7 @@ extern DECLSPEC int SDLCALL Mix_PlayMusic(Mix_Music *music, int loops);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_FadeInMusic(Mix_Music *music, int loops, int ms);
+extern SDL_DECLSPEC int SDLCALL Mix_FadeInMusic(Mix_Music *music, int loops, int ms);
 
 /**
  * Play a new music object, fading in the audio, from a starting position.
@@ -1713,7 +1713,7 @@ extern DECLSPEC int SDLCALL Mix_FadeInMusic(Mix_Music *music, int loops, int ms)
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_FadeInMusicPos(Mix_Music *music, int loops, int ms, double position);
+extern SDL_DECLSPEC int SDLCALL Mix_FadeInMusicPos(Mix_Music *music, int loops, int ms, double position);
 
 /**
  * Play an audio chunk on a specific channel, fading in the audio.
@@ -1753,7 +1753,7 @@ extern DECLSPEC int SDLCALL Mix_FadeInMusicPos(Mix_Music *music, int loops, int
  *
  * \since This function is available since SDL_mixer 3.0.0
  */
-extern DECLSPEC int SDLCALL Mix_FadeInChannel(int channel, Mix_Chunk *chunk, int loops, int ms);
+extern SDL_DECLSPEC int SDLCALL Mix_FadeInChannel(int channel, Mix_Chunk *chunk, int loops, int ms);
 
 /**
  * Play an audio chunk on a specific channel, fading in the audio, for a
@@ -1797,7 +1797,7 @@ extern DECLSPEC int SDLCALL Mix_FadeInChannel(int channel, Mix_Chunk *chunk, int
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_FadeInChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ms, int ticks);
+extern SDL_DECLSPEC int SDLCALL Mix_FadeInChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ms, int ticks);
 
 /**
  * Set the volume for a specific channel.
@@ -1825,7 +1825,7 @@ extern DECLSPEC int SDLCALL Mix_FadeInChannelTimed(int channel, Mix_Chunk *chunk
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_Volume(int channel, int volume);
+extern SDL_DECLSPEC int SDLCALL Mix_Volume(int channel, int volume);
 
 /**
  * Set the volume for a specific chunk.
@@ -1853,7 +1853,7 @@ extern DECLSPEC int SDLCALL Mix_Volume(int channel, int volume);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_VolumeChunk(Mix_Chunk *chunk, int volume);
+extern SDL_DECLSPEC int SDLCALL Mix_VolumeChunk(Mix_Chunk *chunk, int volume);
 
 /**
  * Set the volume for the music channel.
@@ -1874,7 +1874,7 @@ extern DECLSPEC int SDLCALL Mix_VolumeChunk(Mix_Chunk *chunk, int volume);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_VolumeMusic(int volume);
+extern SDL_DECLSPEC int SDLCALL Mix_VolumeMusic(int volume);
 
 /**
  * Query the current volume value for a music object.
@@ -1884,7 +1884,7 @@ extern DECLSPEC int SDLCALL Mix_VolumeMusic(int volume);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_GetMusicVolume(Mix_Music *music);
+extern SDL_DECLSPEC int SDLCALL Mix_GetMusicVolume(Mix_Music *music);
 
 /**
  * Set the master volume for all channels.
@@ -1910,7 +1910,7 @@ extern DECLSPEC int SDLCALL Mix_GetMusicVolume(Mix_Music *music);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_MasterVolume(int volume);
+extern SDL_DECLSPEC int SDLCALL Mix_MasterVolume(int volume);
 
 /**
  * Halt playing of a particular channel.
@@ -1932,7 +1932,7 @@ extern DECLSPEC int SDLCALL Mix_MasterVolume(int volume);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_HaltChannel(int channel);
+extern SDL_DECLSPEC int SDLCALL Mix_HaltChannel(int channel);
 
 /**
  * Halt playing of a group of channels by arbitrary tag.
@@ -1954,7 +1954,7 @@ extern DECLSPEC int SDLCALL Mix_HaltChannel(int channel);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_HaltGroup(int tag);
+extern SDL_DECLSPEC int SDLCALL Mix_HaltGroup(int tag);
 
 /**
  * Halt playing of the music stream.
@@ -1969,7 +1969,7 @@ extern DECLSPEC int SDLCALL Mix_HaltGroup(int tag);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_HaltMusic(void);
+extern SDL_DECLSPEC int SDLCALL Mix_HaltMusic(void);
 
 /**
  * Change the expiration delay for a particular channel.
@@ -1997,7 +1997,7 @@ extern DECLSPEC int SDLCALL Mix_HaltMusic(void);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_ExpireChannel(int channel, int ticks);
+extern SDL_DECLSPEC int SDLCALL Mix_ExpireChannel(int channel, int ticks);
 
 /**
  * Halt a channel after fading it out for a specified time.
@@ -2023,7 +2023,7 @@ extern DECLSPEC int SDLCALL Mix_ExpireChannel(int channel, int ticks);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_FadeOutChannel(int which, int ms);
+extern SDL_DECLSPEC int SDLCALL Mix_FadeOutChannel(int which, int ms);
 
 /**
  * Halt a playing group of channels by arbitrary tag, after fading them out
@@ -2056,7 +2056,7 @@ extern DECLSPEC int SDLCALL Mix_FadeOutChannel(int which, int ms);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_FadeOutGroup(int tag, int ms);
+extern SDL_DECLSPEC int SDLCALL Mix_FadeOutGroup(int tag, int ms);
 
 /**
  * Halt the music stream after fading it out for a specified time.
@@ -2081,7 +2081,7 @@ extern DECLSPEC int SDLCALL Mix_FadeOutGroup(int tag, int ms);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_FadeOutMusic(int ms);
+extern SDL_DECLSPEC int SDLCALL Mix_FadeOutMusic(int ms);
 
 /**
  * Query the fading status of the music stream.
@@ -2098,7 +2098,7 @@ extern DECLSPEC int SDLCALL Mix_FadeOutMusic(int ms);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC Mix_Fading SDLCALL Mix_FadingMusic(void);
+extern SDL_DECLSPEC Mix_Fading SDLCALL Mix_FadingMusic(void);
 
 /**
  * Query the fading status of a channel.
@@ -2122,7 +2122,7 @@ extern DECLSPEC Mix_Fading SDLCALL Mix_FadingMusic(void);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC Mix_Fading SDLCALL Mix_FadingChannel(int which);
+extern SDL_DECLSPEC Mix_Fading SDLCALL Mix_FadingChannel(int which);
 
 /**
  * Pause a particular channel.
@@ -2148,7 +2148,7 @@ extern DECLSPEC Mix_Fading SDLCALL Mix_FadingChannel(int which);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC void SDLCALL Mix_Pause(int channel);
+extern SDL_DECLSPEC void SDLCALL Mix_Pause(int channel);
 
 /**
  * Pause playing of a group of channels by arbitrary tag.
@@ -2173,7 +2173,7 @@ extern DECLSPEC void SDLCALL Mix_Pause(int channel);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_PauseGroup(int tag);
+extern SDL_DECLSPEC int SDLCALL Mix_PauseGroup(int tag);
 
 /**
  * Resume a particular channel.
@@ -2191,7 +2191,7 @@ extern DECLSPEC int SDLCALL Mix_PauseGroup(int tag);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC void SDLCALL Mix_Resume(int channel);
+extern SDL_DECLSPEC void SDLCALL Mix_Resume(int channel);
 
 /**
  * Resume playing of a group of channels by arbitrary tag.
@@ -2212,7 +2212,7 @@ extern DECLSPEC void SDLCALL Mix_Resume(int channel);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_ResumeGroup(int tag);
+extern SDL_DECLSPEC int SDLCALL Mix_ResumeGroup(int tag);
 
 /**
  * Query whether a particular channel is paused.
@@ -2225,7 +2225,7 @@ extern DECLSPEC int SDLCALL Mix_ResumeGroup(int tag);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_Paused(int channel);
+extern SDL_DECLSPEC int SDLCALL Mix_Paused(int channel);
 
 /**
  * Pause the music stream.
@@ -2241,7 +2241,7 @@ extern DECLSPEC int SDLCALL Mix_Paused(int channel);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC void SDLCALL Mix_PauseMusic(void);
+extern SDL_DECLSPEC void SDLCALL Mix_PauseMusic(void);
 
 /**
  * Resume the music stream.
@@ -2251,7 +2251,7 @@ extern DECLSPEC void SDLCALL Mix_PauseMusic(void);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC void SDLCALL Mix_ResumeMusic(void);
+extern SDL_DECLSPEC void SDLCALL Mix_ResumeMusic(void);
 
 /**
  * Rewind the music stream.
@@ -2263,7 +2263,7 @@ extern DECLSPEC void SDLCALL Mix_ResumeMusic(void);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC void SDLCALL Mix_RewindMusic(void);
+extern SDL_DECLSPEC void SDLCALL Mix_RewindMusic(void);
 
 /**
  * Query whether the music stream is paused.
@@ -2275,7 +2275,7 @@ extern DECLSPEC void SDLCALL Mix_RewindMusic(void);
  * \sa Mix_PauseMusic
  * \sa Mix_ResumeMusic
  */
-extern DECLSPEC int SDLCALL Mix_PausedMusic(void);
+extern SDL_DECLSPEC int SDLCALL Mix_PausedMusic(void);
 
 /**
  * Jump to a given order in mod music.
@@ -2287,7 +2287,7 @@ extern DECLSPEC int SDLCALL Mix_PausedMusic(void);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_ModMusicJumpToOrder(int order);
+extern SDL_DECLSPEC int SDLCALL Mix_ModMusicJumpToOrder(int order);
 
 /**
  * Start a track in music object.
@@ -2300,7 +2300,7 @@ extern DECLSPEC int SDLCALL Mix_ModMusicJumpToOrder(int order);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_StartTrack(Mix_Music *music, int track);
+extern SDL_DECLSPEC int SDLCALL Mix_StartTrack(Mix_Music *music, int track);
 
 /**
  * Get number of tracks in music object.
@@ -2313,7 +2313,7 @@ extern DECLSPEC int SDLCALL Mix_StartTrack(Mix_Music *music, int track);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_GetNumTracks(Mix_Music *music);
+extern SDL_DECLSPEC int SDLCALL Mix_GetNumTracks(Mix_Music *music);
 
 /**
  * Set the current position in the music stream, in seconds.
@@ -2328,7 +2328,7 @@ extern DECLSPEC int SDLCALL Mix_GetNumTracks(Mix_Music *music);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_SetMusicPosition(double position);
+extern SDL_DECLSPEC int SDLCALL Mix_SetMusicPosition(double position);
 
 /**
  * Get the time current position of music stream, in seconds.
@@ -2340,7 +2340,7 @@ extern DECLSPEC int SDLCALL Mix_SetMusicPosition(double position);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC double SDLCALL Mix_GetMusicPosition(Mix_Music *music);
+extern SDL_DECLSPEC double SDLCALL Mix_GetMusicPosition(Mix_Music *music);
 
 /**
  * Get a music object's duration, in seconds.
@@ -2354,7 +2354,7 @@ extern DECLSPEC double SDLCALL Mix_GetMusicPosition(Mix_Music *music);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC double SDLCALL Mix_MusicDuration(Mix_Music *music);
+extern SDL_DECLSPEC double SDLCALL Mix_MusicDuration(Mix_Music *music);
 
 /**
  * Get the loop start time position of music stream, in seconds.
@@ -2369,7 +2369,7 @@ extern DECLSPEC double SDLCALL Mix_MusicDuration(Mix_Music *music);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC double SDLCALL Mix_GetMusicLoopStartTime(Mix_Music *music);
+extern SDL_DECLSPEC double SDLCALL Mix_GetMusicLoopStartTime(Mix_Music *music);
 
 /**
  * Get the loop end time position of music stream, in seconds.
@@ -2384,7 +2384,7 @@ extern DECLSPEC double SDLCALL Mix_GetMusicLoopStartTime(Mix_Music *music);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC double SDLCALL Mix_GetMusicLoopEndTime(Mix_Music *music);
+extern SDL_DECLSPEC double SDLCALL Mix_GetMusicLoopEndTime(Mix_Music *music);
 
 /**
  * Get the loop time length of music stream, in seconds.
@@ -2399,7 +2399,7 @@ extern DECLSPEC double SDLCALL Mix_GetMusicLoopEndTime(Mix_Music *music);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC double SDLCALL Mix_GetMusicLoopLengthTime(Mix_Music *music);
+extern SDL_DECLSPEC double SDLCALL Mix_GetMusicLoopLengthTime(Mix_Music *music);
 
 /**
  * Check the playing status of a specific channel.
@@ -2421,7 +2421,7 @@ extern DECLSPEC double SDLCALL Mix_GetMusicLoopLengthTime(Mix_Music *music);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_Playing(int channel);
+extern SDL_DECLSPEC int SDLCALL Mix_Playing(int channel);
 
 /**
  * Check the playing status of the music stream.
@@ -2436,7 +2436,7 @@ extern DECLSPEC int SDLCALL Mix_Playing(int channel);
  *
  * \since This function is available since SDL_mixer 3.0.0.
  */
-extern DECLSPEC int SDLCALL Mix_PlayingMusic(void);
+extern SDL_DECLSPEC int SDLCALL Mix_PlayingMusic

(Patch may be truncated, please check the link at the top of this post.)