XMMS plugin : Fix symbol visibility.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 5 Jun 2013 08:48:19 +0000 (18:48 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 5 Jun 2013 08:48:25 +0000 (18:48 +1000)
FLAC now defaults to building with -fvisibility=hidden on GCC4-ELF
platforms.  This breaks the XMMS plugin.  At least get_iplugin_info()
needs to be externally visible.

Patch from Christian Weisgerber <naddy@mips.inka.de>

src/plugin_xmms/plugin.c

index c99b52e..f7ebfa9 100644 (file)
@@ -140,7 +140,7 @@ static FLAC__bool is_big_endian_host_;
 static unsigned bitrate_history_[BITRATE_HIST_SIZE];
 
 
-InputPlugin *get_iplugin_info(void)
+FLAC_API InputPlugin *get_iplugin_info(void)
 {
        flac_ip.description = g_strdup_printf("Reference FLAC Player v%s", FLAC__VERSION_STRING);
        return &flac_ip;