load_ogg.c
changeset 690 3d18eb009c89
parent 642 dae7bb0a66b1
child 711 f40c5ac95b12
     1.1 --- a/load_ogg.c	Fri Jun 27 19:54:54 2014 -0700
     1.2 +++ b/load_ogg.c	Mon Jul 07 11:01:41 2014 -0700
     1.3 @@ -43,24 +43,25 @@
     1.4      return SDL_RWread((SDL_RWops*)datasource, ptr, size, nmemb);
     1.5  }
     1.6  
     1.7 -static Sint64 sdl_seek_func(void *datasource, ogg_int64_t offset, int whence)
     1.8 +static int sdl_seek_func(void *datasource, ogg_int64_t offset, int whence)
     1.9  {
    1.10 -    return SDL_RWseek((SDL_RWops*)datasource, offset, whence);
    1.11 +    return (int)SDL_RWseek((SDL_RWops*)datasource, offset, whence);
    1.12  }
    1.13  
    1.14 -static Sint64 sdl_close_func_freesrc(void *datasource)
    1.15 +static int sdl_close_func_freesrc(void *datasource)
    1.16  {
    1.17      return SDL_RWclose((SDL_RWops*)datasource);
    1.18  }
    1.19  
    1.20 -static Sint64 sdl_close_func_nofreesrc(void *datasource)
    1.21 +static int sdl_close_func_nofreesrc(void *datasource)
    1.22  {
    1.23 -    return SDL_RWseek((SDL_RWops*)datasource, 0, RW_SEEK_SET);
    1.24 +    SDL_RWseek((SDL_RWops*)datasource, 0, RW_SEEK_SET);
    1.25 +    return 0;
    1.26  }
    1.27  
    1.28 -static Sint64 sdl_tell_func(void *datasource)
    1.29 +static long sdl_tell_func(void *datasource)
    1.30  {
    1.31 -    return SDL_RWtell((SDL_RWops*)datasource);
    1.32 +    return (long)SDL_RWtell((SDL_RWops*)datasource);
    1.33  }
    1.34  
    1.35