diff options
author | Siraj Razick <siraj.razick@collabora.co.uk> | 2012-01-04 05:10:37 -0500 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2012-01-04 12:24:23 +0000 |
commit | 748caada6a36c26e7b8752a39138b4eaf42296db (patch) | |
tree | ca169891148846fd0ec0767d1f954b894bd00558 /src/plugin-loader.c | |
parent | b5bc31a5084e05d7e4251a37f628f7835928ab1c (diff) |
Use ";" as the seperator on windows.
With this fix, gabble can locate the plugin directory properly on
Windows
Diffstat (limited to 'src/plugin-loader.c')
-rw-r--r-- | src/plugin-loader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugin-loader.c b/src/plugin-loader.c index 4429c345f..2568ff5db 100644 --- a/src/plugin-loader.c +++ b/src/plugin-loader.c @@ -123,7 +123,11 @@ gabble_plugin_loader_probe (GabblePluginLoader *self) if (directory_names == NULL) directory_names = PLUGIN_DIR; +#ifdef G_OS_WIN32 + dir_array = g_strsplit (directory_names, ";", 0); +#else dir_array = g_strsplit (directory_names, ":", 0); +#endif for (ptr = dir_array ; *ptr != NULL ; ptr++) { |