music.c
changeset 817 aef7a1784ffd
parent 813 e52b611d3a6f
child 830 c292b484a95e
     1.1 --- a/music.c	Sat Oct 21 04:03:49 2017 -0700
     1.2 +++ b/music.c	Sat Oct 21 17:00:00 2017 +0300
     1.3 @@ -153,9 +153,9 @@
     1.4  
     1.5  
     1.6  /* Support for hooking when the music has finished */
     1.7 -static void (*music_finished_hook)(void) = NULL;
     1.8 +static void (SDLCALL *music_finished_hook)(void) = NULL;
     1.9  
    1.10 -void Mix_HookMusicFinished(void (*music_finished)(void))
    1.11 +void Mix_HookMusicFinished(void (SDLCALL *music_finished)(void))
    1.12  {
    1.13      Mix_LockAudio();
    1.14      music_finished_hook = music_finished;
    1.15 @@ -199,7 +199,7 @@
    1.16  }
    1.17  
    1.18  /* Mixing function */
    1.19 -void music_mixer(void *udata, Uint8 *stream, int len)
    1.20 +void SDLCALL music_mixer(void *udata, Uint8 *stream, int len)
    1.21  {
    1.22      while (music_playing && music_active && len > 0) {
    1.23          /* Handle fading */
    1.24 @@ -1023,7 +1023,7 @@
    1.25      return NULL;
    1.26  }
    1.27  
    1.28 -int Mix_EachSoundFont(int (*function)(const char*, void*), void *data)
    1.29 +int Mix_EachSoundFont(int (SDLCALL *function)(const char*, void*), void *data)
    1.30  {
    1.31      char *context, *path, *paths;
    1.32      const char* cpaths = Mix_GetSoundFonts();