mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
Patch to SDL_sound.c to allow building on Haiku.
This commit is contained in:
13
media-libs/sdl-sound/SDL_sound-haiku.c.diff
Normal file
13
media-libs/sdl-sound/SDL_sound-haiku.c.diff
Normal 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 */
|
||||
|
||||
Reference in New Issue
Block a user