summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-12-19 12:05:20 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-12-19 12:05:20 +0000
commitbca91fb4c2d3381352ce0f018cf95cbff7892b26 (patch)
treeb50bfe8a95b2cc4dbd525bde187ffe39df7c6856 /legacy
parent1167399c7c77dee0198fb0c8db74d43b75f5c94a (diff)
more portable way to get the sufix of a shared library name
SVN revision: 44573
Diffstat (limited to 'legacy')
-rw-r--r--legacy/edje/configure.ac2
-rw-r--r--legacy/edje/src/lib/edje_module.c8
2 files changed, 3 insertions, 7 deletions
diff --git a/legacy/edje/configure.ac b/legacy/edje/configure.ac
index f8ba8c708a..13f21a0f61 100644
--- a/legacy/edje/configure.ac
+++ b/legacy/edje/configure.ac
@@ -35,6 +35,8 @@ case "$host_os" in
35esac 35esac
36AC_SUBST(release_info) 36AC_SUBST(release_info)
37 37
38AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "$shrext_cmds", [Suffix for shared objects])
39
38 40
39### Default options with respect to host 41### Default options with respect to host
40 42
diff --git a/legacy/edje/src/lib/edje_module.c b/legacy/edje/src/lib/edje_module.c
index 1a77919558..dd4cea7816 100644
--- a/legacy/edje/src/lib/edje_module.c
+++ b/legacy/edje/src/lib/edje_module.c
@@ -33,12 +33,6 @@ void *alloca (size_t);
33 33
34#include "Edje.h" 34#include "Edje.h"
35 35
36#if defined(_WIN32) || defined(__CYGWIN__)
37# define MODULE_EXTENSION ".dll"
38#else
39# define MODULE_EXTENSION ".so"
40#endif /* !defined(_WIN32) && !defined(__CYGWIN__) */
41
42#define LOG_COLOR "\033[36m" 36#define LOG_COLOR "\033[36m"
43 37
44Eina_Hash *_registered_modules = NULL; 38Eina_Hash *_registered_modules = NULL;
@@ -54,7 +48,7 @@ _edje_module_name_get(Eina_Module *m)
54 48
55 name = ecore_file_file_get(eina_module_file_get(m)); 49 name = ecore_file_file_get(eina_module_file_get(m));
56 len = strlen(name); 50 len = strlen(name);
57 len -= sizeof(MODULE_EXTENSION) - 1; 51 len -= sizeof(SHARED_LIB_SUFFIX) - 1;
58 if (len <= 0) return NULL; 52 if (len <= 0) return NULL;
59 return eina_stringshare_add_length(name, len); 53 return eina_stringshare_add_length(name, len);
60} 54}