24 lines
908 B
Diff
24 lines
908 B
Diff
diff -ru enchant-1.5.0.orig/src/enchant.c enchant-1.5.0/src/enchant.c
|
|
--- enchant-1.5.0.orig/src/enchant.c 2009-06-22 11:53:16.000000000 +0100
|
|
+++ enchant-1.5.0/src/enchant.c 2009-06-22 11:53:39.000000000 +0100
|
|
@@ -232,6 +232,9 @@
|
|
if (module_dir)
|
|
module_dirs = enchant_slist_append_unique_string (module_dirs, module_dir);
|
|
|
|
+#if defined(ENCHANT_GLOBAL_MODULE_DIR)
|
|
+ module_dirs = enchant_slist_append_unique_string (module_dirs, g_strdup (ENCHANT_GLOBAL_MODULE_DIR));
|
|
+#else
|
|
/* Dynamically locate library and search for modules relative to it. */
|
|
prefix = enchant_get_prefix_dir();
|
|
if(prefix)
|
|
@@ -240,9 +243,6 @@
|
|
g_free(prefix);
|
|
module_dirs = enchant_slist_append_unique_string (module_dirs, module_dir);
|
|
}
|
|
-
|
|
-#if defined(ENCHANT_GLOBAL_MODULE_DIR)
|
|
- module_dirs = enchant_slist_append_unique_string (module_dirs, g_strdup (ENCHANT_GLOBAL_MODULE_DIR));
|
|
#endif
|
|
|
|
return module_dirs;
|