diff SDL_sound.c @ 553:5ec7f4e5e20b

Fixed compilation on pre-C99 compilers (gcc2, msvc, etc).
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 11 Sep 2008 05:29:12 -0400
parents 2e8907ff98e9
children e9a6286d9243
line wrap: on
line diff
--- 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 */