ports/devel/sdl-sound/patches/patch-SDL_sound_h

14 lines
347 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
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