ecore: move EAPI_MAIN from elementary to ecore.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 14 Nov 2017 21:50:13 +0000 (13:50 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 14 Nov 2017 21:50:13 +0000 (13:50 -0800)
src/lib/ecore/efl_general.h
src/lib/elementary/Elementary.h

index c91f61f..3a79e46 100644 (file)
 #undef __EFL_NET
 #undef EFL_MAIN
 #undef EFL_MAIN_EX
+#undef EAPI_MAIN
+
+#ifdef _WIN32
+// There is no support for quicklaunch on windows, so no needs
+// to export the efl_main symbol
+# define EAPI_MAIN
+#else
+# ifdef __GNUC__
+#  if __GNUC__ >= 4
+#   define EAPI_MAIN __attribute__ ((visibility("default")))
+#  else
+#   define EAPI_MAIN
+#  endif
+# else
+#  define EAPI_MAIN
+# endif
+#endif /* ! _WIN32 */
 
 #ifdef EFL_VERSION_MICRO
 # define _EFL_VERSION_MICRO EFL_VERSION_MICRO
index 3913084..bf41fde 100644 (file)
@@ -85,7 +85,6 @@
 #endif
 
 #ifdef _WIN32
-# define EAPI_MAIN
 # ifdef ELEMENTARY_BUILD
 #  ifdef DLL_EXPORT
 #   define EAPI __declspec(dllexport)
 # ifdef __GNUC__
 #  if __GNUC__ >= 4
 #   define EAPI __attribute__ ((visibility("default")))
-#   define EAPI_MAIN __attribute__ ((visibility("default")))
 #  else
 #   define EAPI
-#   define EAPI_MAIN
 #  endif
 # else
 #  define EAPI
-#  define EAPI_MAIN
 # endif
 #endif /* ! _WIN32 */