openbsd-ports/devel/sdl-sound/patches/patch-decoders_timidity_instrum_dls_c
ajacoutot 612f280208 Fixes from upstream:
- Clean up symbol visibility.
- Don't force quit in signal handler, since we might double-free things.
- Disable reverb flag in modplug decoder. It's producing trash in some cases.
- Don't underflow array when parsing timidity config file.
- Fix read_config_file() not closing the file when there is an error.
- Honor the return code from recursive read_config_file() call.
- Reset some state on shutdown to prevent crash when reinitializing.

from Brad
2012-06-01 15:57:51 +00:00

31 lines
1.3 KiB
Plaintext

$OpenBSD: patch-decoders_timidity_instrum_dls_c,v 1.1 2012/06/01 15:57:51 ajacoutot Exp $
Clean up symbol visibility.
--- decoders/timidity/instrum_dls.c.orig Fri Jun 1 02:53:52 2012
+++ decoders/timidity/instrum_dls.c Fri Jun 1 02:54:37 2012
@@ -51,9 +51,9 @@ typedef struct _RIFF_Chunk {
struct _RIFF_Chunk *next;
} RIFF_Chunk;
-extern DECLSPEC RIFF_Chunk* SDLCALL LoadRIFF(SDL_RWops *src);
-extern DECLSPEC void SDLCALL FreeRIFF(RIFF_Chunk *chunk);
-extern DECLSPEC void SDLCALL PrintRIFF(RIFF_Chunk *chunk, int level);
+extern RIFF_Chunk* LoadRIFF(SDL_RWops *src);
+extern void FreeRIFF(RIFF_Chunk *chunk);
+extern void PrintRIFF(RIFF_Chunk *chunk, int level);
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*-------------------------------------------------------------------------*/
@@ -353,8 +353,8 @@ typedef struct _DLS_Data {
const char *comments;
} DLS_Data;
-extern DECLSPEC DLS_Data* SDLCALL LoadDLS(SDL_RWops *src);
-extern DECLSPEC void SDLCALL FreeDLS(DLS_Data *chunk);
+extern DLS_Data* LoadDLS(SDL_RWops *src);
+extern void FreeDLS(DLS_Data *chunk);
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*-------------------------------------------------------------------------*/