diff --git a/src/bin/e_open.c b/src/bin/e_open.c index aaa5bc59b..6d95f7bc3 100644 --- a/src/bin/e_open.c +++ b/src/bin/e_open.c @@ -448,7 +448,7 @@ static const Ecore_Getopt options = { } }; -E_API int +int main(int argc, char *argv[]) { Eina_Bool quit_option = EINA_FALSE; diff --git a/src/bin/e_start_main.c b/src/bin/e_start_main.c index 93b293106..553f86e88 100644 --- a/src/bin/e_start_main.c +++ b/src/bin/e_start_main.c @@ -24,6 +24,31 @@ # define E_CSERVE +# ifdef E_API +# undef E_API +# endif +# ifdef WIN32 +# ifdef BUILDING_DLL +# define E_API __declspec(dllexport) +# else +# define E_API __declspec(dllimport) +# endif +# else +# ifdef __GNUC__ +# if __GNUC__ >= 4 +/* BROKEN in gcc 4 on amd64 */ +# if 0 +# pragma GCC visibility push(hidden) +# endif +# define E_API __attribute__ ((visibility("default"))) +# else +# define E_API +# endif +# else +# define E_API +# endif +# endif + static Eina_Bool stop_ptrace = EINA_FALSE; static void env_set(const char *var, const char *val);