for Windows, use dll as extension of shared lib

SVN revision: 31896
This commit is contained in:
doursse 2007-09-30 18:16:42 +00:00 committed by doursse
parent befadf24e3
commit b6ca8e692a
1 changed files with 8 additions and 0 deletions

View File

@ -244,7 +244,11 @@ ecore_path_group_available(int group_id)
ext = strrchr(d->d_name, '.');
#ifndef _WIN32
if (!ext || strncmp(ext, ".so", 3))
#else
if (!ext || strncmp(ext, ".dll", 4))
#endif /* _WIN32 */
continue;
snprintf(ppath, PATH_MAX, "%s/%s", path, d->d_name);
@ -317,7 +321,11 @@ ecore_plugin_available_get(int group_id)
if (*d->d_name == '.')
continue;
#ifndef _WIN32
if (!ecore_str_has_suffix(d->d_name, ".so"))
#else
if (!ecore_str_has_suffix(d->d_name, ".dll"))
#endif /* _WIN32 */
continue;
snprintf(ppath, PATH_MAX, "%s/%s", path, d->d_name);