SF.net SVN: geany:[3738] trunk/src/plugins.c
eht16 at users.sourceforge.net
eht16 at xxxxx
Mon Apr 27 19:29:33 UTC 2009
Revision: 3738
http://geany.svn.sourceforge.net/geany/?rev=3738&view=rev
Author: eht16
Date: 2009-04-27 19:29:33 +0000 (Mon, 27 Apr 2009)
Log Message:
-----------
Use G_MODULE_SUFFIX to build the plugin filenames.
Modified Paths:
--------------
trunk/src/plugins.c
Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c 2009-04-26 19:17:08 UTC (rev 3737)
+++ trunk/src/plugins.c 2009-04-27 19:29:33 UTC (rev 3738)
@@ -63,13 +63,7 @@
#include "win32.h"
-#ifdef G_OS_WIN32
-# define PLUGIN_EXT "dll"
-#else
-# define PLUGIN_EXT "so"
-#endif
-
typedef struct GeanyPluginPrivate
{
GeanyAutoSeparator toolbar_separator;
@@ -790,7 +784,7 @@
for (item = list; item != NULL; item = g_slist_next(item))
{
tmp = strrchr(item->data, '.');
- if (tmp == NULL || utils_str_casecmp(tmp, "." PLUGIN_EXT) != 0)
+ if (tmp == NULL || utils_str_casecmp(tmp, "." G_MODULE_SUFFIX) != 0)
continue;
fname = g_strconcat(path, G_DIR_SEPARATOR_S, item->data, NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list