From 2342a4d38fe19dbfab4964635abaf8e5e516ba7d Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 8 Jul 2015 12:46:05 -0400 Subject: [PATCH] fix compile against newer efl --- src/bin/e_open.c | 2 +- src/bin/e_start_main.c | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) 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);