Stop hardcoding plugin extensions everywhere

This commit is contained in:
TingPing
2014-06-04 11:15:35 -04:00
parent 5849a0588e
commit 11e3ecc739
4 changed files with 13 additions and 64 deletions

View File

@@ -153,11 +153,8 @@ initialize_enchant ()
GModule *enchant;
gpointer funcptr;
#ifdef WIN32
enchant = g_module_open("libenchant.dll", 0);
#else
enchant = g_module_open("libenchant", 0);
#endif
enchant = g_module_open("libenchant."G_MODULE_SUFFIX, 0);
if (enchant == NULL)
{
#ifndef WIN32