Fix spell check on OSX

This commit is contained in:
TingPing 2014-05-11 06:46:12 -04:00
parent e5f7441bae
commit 1265eee9e5
2 changed files with 15 additions and 2 deletions

View File

@ -20,6 +20,13 @@
${prefix}/lib/hexchat/plugins/*.so
</binary>
<binary>
${prefix}/lib/libenchant.dylib
</binary>
<data>
${prefix}/share/myspell/dicts
</data>
<binary dest="${bundle}/Contents/MacOS">
${prefix}/bin/python
</binary>

View File

@ -163,7 +163,13 @@ initialize_enchant ()
#ifndef WIN32
enchant = g_module_open("libenchant.so.1", 0);
if (enchant == NULL)
{
#ifdef __APPLE__
enchant = g_module_open("libenchant.dylib", 0);
if (enchant == NULL)
#endif
return;
}
#else
return;
#endif