Check for .dll extension on cygwin

SVN revision: 16539
This commit is contained in:
Sebastian Dransfeld 2005-09-04 20:22:19 +00:00
parent 8d3851841b
commit 5bb40fcccc
1 changed files with 5 additions and 1 deletions

View File

@ -663,7 +663,11 @@ __imlib_TrimLoaderList(char **list, int *num)
if (!list[i])
continue;
ext = strrchr(list[i], '.');
if ((ext) && (!strcasecmp(ext, ".so")))
if ((ext) && (
#ifdef __CYGWIN__
(!strcasecmp(ext, ".dll")) ||
#endif
(!strcasecmp(ext, ".so"))))
{
/* Don't add the same loader multiple times... */
if (!__imlib_ItemInList(ret, size, list[i]))