module: detect extention just based on if its windows or not.

This follow what we do on other part of EFL and should fix issue on Mac OS X.

Should fix D1161 at the same time.

@fix
This commit is contained in:
Cedric BAIL 2014-09-04 16:25:38 +02:00
parent ea6246a8ee
commit c7f130ca87
2 changed files with 6 additions and 3 deletions

View File

@ -97,9 +97,6 @@ MODULE_ARCH="v-v_maj.v_min.v_mic"
AC_SUBST([MODULE_ARCH])
AC_DEFINE_UNQUOTED([MODULE_ARCH], ["$MODULE_ARCH"], ["Module architecture"])
EFL_SHARED_EXTENSION="${shrext_cmds}"
AC_DEFINE_UNQUOTED([EFL_SHARED_EXTENSION], ["${EFL_SHARED_EXTENSION}"], ["Shared extension"])
ELM_UNIX_DEF="#undef"
ELM_WIN32_DEF="#undef"
have_windows="no"

View File

@ -117,6 +117,12 @@ _elm_module_find_as(const char *as)
return m;
}
#if defined(_WIN32) || defined(__CYGWIN__)
# define EFL_SHARED_EXTENSION ".dll"
#else
# define EFL_SHARED_EXTENSION ".so"
#endif
Eina_Bool
_elm_module_load(Elm_Module *m)
{