From 23902aabe959fb98b9b34ba843cda3515b1a00fb Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Tue, 14 Nov 2017 21:04:55 -0800 Subject: [PATCH] elementary: make sure efl_general.h detection work also when you are not using BETA interface. --- src/lib/ecore/efl_general.h | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) 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) \ -- 2.7.4