elementary: make sure efl_general.h detection work also when you are not using BETA...
authorCedric Bail <cedric@osg.samsung.com>
Wed, 15 Nov 2017 05:04:55 +0000 (21:04 -0800)
committerCedric Bail <cedric@osg.samsung.com>
Wed, 15 Nov 2017 05:04:55 +0000 (21:04 -0800)
src/lib/ecore/efl_general.h

index b88c62e..e115c08 100644 (file)
@@ -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
 #  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
 
   __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)                                         \