Fixed dynamic loading of Tremor
authorSam Lantinga <slouken@libsdl.org>
Wed, 18 Jul 2007 16:45:41 +0000
changeset 367352578e23cb7
parent 366 73d7c3d9bbe6
child 368 e61c4fb262bd
Fixed dynamic loading of Tremor
dynamic_ogg.c
     1.1 --- a/dynamic_ogg.c	Wed Jul 18 16:21:18 2007 +0000
     1.2 +++ b/dynamic_ogg.c	Wed Jul 18 16:45:41 2007 +0000
     1.3 @@ -67,7 +67,11 @@
     1.4  			return -1;
     1.5  		}
     1.6  		vorbis.ov_read =
     1.7 -			(long (*)(OggVorbis_File *,char *,int, int,int,int,int *))
     1.8 +#ifdef OGG_USE_TREMOR
     1.9 +			(long (*)(OggVorbis_File *,char *,int,int *))
    1.10 +#else
    1.11 +			(long (*)(OggVorbis_File *,char *,int,int,int,int,int *))
    1.12 +#endif
    1.13  			SDL_LoadFunction(vorbis.handle, "ov_read");
    1.14  		if ( vorbis.ov_read == NULL ) {
    1.15  			SDL_UnloadObject(vorbis.handle);