comparison audacious/pluginenum.c @ 1631:20ff61083530 trunk

[svn] - make audtool build - make plugins work
author nenolod
date Wed, 06 Sep 2006 14:46:09 -0700
parents e513069caf71
children f3934d790a2e
comparison
equal deleted inserted replaced
1630:842667773cc0 1631:20ff61083530
21 21
22 #ifdef HAVE_CONFIG_H 22 #ifdef HAVE_CONFIG_H
23 # include "config.h" 23 # include "config.h"
24 #endif 24 #endif
25 25
26 #ifndef SHARED_SUFFIX
27 # define SHARED_SUFFIX G_MODULE_SUFFIX
28 #endif
29
26 #include "pluginenum.h" 30 #include "pluginenum.h"
27 31
28 #include <glib.h> 32 #include <glib.h>
29 #include <gmodule.h> 33 #include <gmodule.h>
30 #include <glib/gprintf.h> 34 #include <glib/gprintf.h>
236 } 240 }
237 241
238 static gboolean 242 static gboolean
239 scan_plugin_func(const gchar * path, const gchar * basename, gpointer data) 243 scan_plugin_func(const gchar * path, const gchar * basename, gpointer data)
240 { 244 {
241 if (!str_has_suffix_nocase(basename, G_MODULE_SUFFIX)) 245 if (!str_has_suffix_nocase(basename, SHARED_SUFFIX))
242 return FALSE; 246 return FALSE;
243 247
244 if (!g_file_test(path, G_FILE_TEST_IS_REGULAR)) 248 if (!g_file_test(path, G_FILE_TEST_IS_REGULAR))
245 return FALSE; 249 return FALSE;
246 250