openbsd-ports/devel/sdl-sound/patches/patch-SDL_sound_h
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

16 lines
418 B
Plaintext

$OpenBSD: patch-SDL_sound_h,v 1.1 2012/06/01 15:57:51 ajacoutot Exp $
Clean up symbol visibility.
--- SDL_sound.h.orig Fri Jun 1 02:52:00 2012
+++ SDL_sound.h Fri Jun 1 02:52:38 2012
@@ -79,6 +79,8 @@ extern "C" {
#ifdef SDL_SOUND_DLL_EXPORTS
# define SNDDECLSPEC __declspec(dllexport)
+#elif (__GNUC__ >= 3)
+# define SNDDECLSPEC __attribute__((visibility("default")))
#else
# define SNDDECLSPEC
#endif