* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
/*
* GLib at ftp://ftp.gtk.org/pub/gtk/.
*/
+#undef G_DISABLE_ASSERT
+#undef G_LOG_DOMAIN
+
#include <gmodule.h>
#include <stdlib.h>
+G_MODULE_EXPORT void gplugin_a_func (void);
+G_MODULE_EXPORT void gplugin_clash_func (void);
+G_MODULE_EXPORT void g_clash_func (void);
+G_MODULE_EXPORT void gplugin_say_boo_func (void);
+G_MODULE_EXPORT void gplugin_a_module_func (GModule *module);
+
G_MODULE_EXPORT gchar* gplugin_a_state;
G_MODULE_EXPORT void
G_MODULE_EXPORT void
gplugin_a_module_func (GModule *module)
{
- void (*f) (void) = NULL;
+ void *f = NULL;
- if (!g_module_symbol (module, "gplugin_say_boo_func", (gpointer *) &f))
+ if (!g_module_symbol (module, "gplugin_say_boo_func", &f ))
{
g_print ("error: %s\n", g_module_error ());
exit (1);
}
- f ();
+ ((void(*)(void)) f) ();
}