Patch to SDL_sound.c to allow building on Haiku.

This commit is contained in:
Scott McCreary
2008-08-31 06:53:19 +00:00
parent 2d2f34b79a
commit 240b6b0363

View File

@@ -0,0 +1,13 @@
--- SDL_sound.c 2008-08-30 21:13:28.000000000 -0700
+++ SDL_sound-haiku.c 2008-08-30 22:41:20.000000000 -0700
@@ -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 */