headers: ensure Efl.h is always included behind BETA define guards
authorMike Blumenkrantz <zmike@samsung.com>
Thu, 7 Mar 2019 22:42:01 +0000 (17:42 -0500)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 15 Mar 2019 04:23:18 +0000 (13:23 +0900)
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D8244

src/lib/ecore/Ecore.h
src/lib/ecore/Efl_Core.h
src/lib/ector/Ector.h
src/lib/eldbus/Eldbus.h
src/lib/eldbus/Eldbus_Model.h
src/lib/elementary/Elementary.h
src/lib/evas/Evas.h

index 4bbe0c7..d2b17e6 100644 (file)
 
 #include <Eina.h>
 #include <Eo.h>
+
+#ifdef EFL_BETA_API_SUPPORT
 #include <Efl.h>
+#endif
 
 #ifdef EAPI
 # undef EAPI
index 6ae8190..ab82063 100644 (file)
@@ -5,8 +5,9 @@
 
 #include <Eina.h>
 #include <Eo.h>
+#ifdef EFL_BETA_API_SUPPORT
 #include <Efl.h>
-
+#endif
 #ifdef EAPI
 # undef EAPI
 #endif
index e2268f3..729f4e5 100644 (file)
@@ -3,8 +3,9 @@
 
 #include <Eina.h>
 #include <Eo.h>
+#ifdef EFL_BETA_API_SUPPORT
 #include <Efl.h>
-
+#endif
 #ifdef EAPI
 # undef EAPI
 #endif
index d1cba9e..1167adb 100644 (file)
@@ -80,8 +80,9 @@
 #include <stdarg.h>
 #include <Efl_Config.h>
 #include <Eo.h>
+#ifdef EFL_BETA_API_SUPPORT
 #include <Efl.h>
-
+#endif
 #ifdef EAPI
 # undef EAPI
 #endif
index 4f4aca2..0bf925c 100644 (file)
@@ -2,7 +2,6 @@
 #define _ELDBUS_MODEL_H
 
 #include <Eldbus.h>
-#include <Efl.h>
 #include <Eo.h>
 
 #ifdef __cplusplus
@@ -10,7 +9,7 @@ extern "C" {
 #endif
 
 #ifdef EFL_BETA_API_SUPPORT
-
+#include <Efl.h>
 #include <eldbus_model_connection.eo.h>
 #include <eldbus_model_object.eo.h>
 #include <eldbus_model_proxy.eo.h>
index 3b2b63e..b9a790d 100644 (file)
@@ -72,7 +72,6 @@
 #include <Efreet_Mime.h>
 #include <Efreet_Trash.h>
 #include <Ethumb_Client.h>
-#include <Efl.h>
 
 #ifdef ELM_ELOCATION
 #include <Elocation.h>
@@ -154,6 +153,7 @@ EAPI extern Elm_Version *elm_version;
 #include <elm_focus.h>
 
 #if defined (EFL_EO_API_SUPPORT) && defined (EFL_BETA_API_SUPPORT)
+#include <Efl.h>
 /* FIXME: wtf? */
 #ifndef EFL_UI_RADIO_EVENT_CHANGED
 # define EFL_UI_RADIO_EVENT_CHANGED EFL_UI_NSTATE_EVENT_CHANGED
index ad3f16f..67cdfa2 100644 (file)
 
 #include <Eina.h>
 
-/* This include has been added to support Eo in Evas */
 #include <Eo.h>
+#ifdef EFL_BETA_API_SUPPORT
+/* This include has been added to support Eo in Evas */
 #include <Efl.h>
-
+#endif
 
 #include <Evas_Loader.h>
 
@@ -209,7 +210,9 @@ extern "C" {
 #ifndef EFL_NOLEGACY_API_SUPPORT
 #include <Evas_Legacy.h>
 #endif
+#ifdef EFL_BETA_API_SUPPORT
 #include <Evas_Eo.h>
+#endif
 
 #ifdef __cplusplus
 }