# HG changeset patch # User Ryan C. Gordon # Date 1221125352 14400 # Node ID 5ec7f4e5e20bdbb83427c39e4bcbf58f9929003a # Parent 2e8907ff98e929e3cf743198445bbb67ee74881e Fixed compilation on pre-C99 compilers (gcc2, msvc, etc). diff -r 2e8907ff98e9 -r 5ec7f4e5e20b SDL_sound.c --- a/SDL_sound.c Tue Sep 09 16:28:11 2008 -0400 +++ b/SDL_sound.c Thu Sep 11 05:29:12 2008 -0400 @@ -928,8 +928,9 @@ Sint32 Sound_GetDuration(Sound_Sample *sample) { + Sound_SampleInternal *internal; BAIL_IF_MACRO(!initialized, ERR_NOT_INITIALIZED, -1); - Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; + internal = (Sound_SampleInternal *) sample->opaque; return(internal->total_time); } /* Sound_GetDuration */