From: Cedric Bail Date: Wed, 15 Nov 2017 05:04:55 +0000 (-0800) Subject: elementary: make sure efl_general.h detection work also when you are not using BETA... X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~1695 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23902aabe959fb98b9b34ba843cda3515b1a00fb;p=platform%2Fupstream%2Fefl.git elementary: make sure efl_general.h detection work also when you are not using BETA interface. --- diff --git a/src/lib/ecore/efl_general.h b/src/lib/ecore/efl_general.h index b88c62e..e115c08 100644 --- a/src/lib/ecore/efl_general.h +++ b/src/lib/ecore/efl_general.h @@ -1,4 +1,6 @@ #undef EAPI_MAIN +#undef __EFL_UI +#undef __EFL_NET #ifdef _WIN32 // There is no support for quicklaunch on windows, so no needs @@ -15,6 +17,20 @@ # define EAPI_MAIN # endif #endif /* ! _WIN32 */ + +#ifdef __EFL_UI_IS_REQUIRED +# define __EFL_UI(...) __VA_ARGS__ +# define __EFL_UI_IS_DEFINED +#else +# define __EFL_UI(...) +#endif + +#ifdef __EFL_NET_IS_REQUIRED +# define __EFL_NET(...) __VA_ARGS__ +#else +# define __EFL_NET(...) +#endif + #ifdef EFL_BETA_API_SUPPORT // This file is designed to be included again and again @@ -26,8 +42,6 @@ #undef _EFL_APP_VERSION_SET #undef __EFL_MAIN_CONSTRUCTOR #undef __EFL_MAIN_DESTRUCTOR -#undef __EFL_UI -#undef __EFL_NET #undef EFL_MAIN #undef EFL_MAIN_EX @@ -65,19 +79,6 @@ __EFL_NET(ecore_con_url_shutdown();) \ __EFL_NET(ecore_con_shutdown();) -#ifdef __EFL_UI_IS_REQUIRED -# define __EFL_UI(...) __VA_ARGS__ -# define __EFL_UI_IS_DEFINED -#else -# define __EFL_UI(...) -#endif - -#ifdef __EFL_NET_IS_REQUIRED -# define __EFL_NET(...) __VA_ARGS__ -#else -# define __EFL_NET(...) -#endif - #define _EFL_APP_VERSION_SET() \ do { \ if (efl_build_version_set) \