Skip to content

Commit

Permalink
Fixed compilation on pre-C99 compilers (gcc2, msvc, etc).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 11, 2008
1 parent 059515b commit d167bde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SDL_sound.c
Expand Up @@ -928,8 +928,9 @@ int Sound_Seek(Sound_Sample *sample, Uint32 ms)

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 */

Expand Down

0 comments on commit d167bde

Please sign in to comment.