discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=2342a4d38fe19dbfab4964635abaf8e5e516ba7d

commit 2342a4d38fe19dbfab4964635abaf8e5e516ba7d
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Jul 8 12:46:05 2015 -0400

    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 aaa5bc5..6d95f7b 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 93b2931..553f86e 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);

-- 


Reply via email to