stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=61edc877879d9d4684314f71dc4bd8199dc4ff96

commit 61edc877879d9d4684314f71dc4bd8199dc4ff96
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Thu Jul 28 16:52:25 2016 +0200

    elm: object_item: add guards to include eo and legacy header only when 
allowed
    
    Make sure the eo and legacy headers are only included when the matching 
defines
    are enabled.
---
 src/lib/elementary/elm_object_item.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lib/elementary/elm_object_item.h 
b/src/lib/elementary/elm_object_item.h
index 8c933a6..095c77a 100644
--- a/src/lib/elementary/elm_object_item.h
+++ b/src/lib/elementary/elm_object_item.h
@@ -21,8 +21,12 @@ typedef Eo Elm_Object_Item;
  */
 typedef void                  (*Elm_Object_Item_Signal_Cb)(void *data, 
Elm_Object_Item *it, const char *emission, const char *source);
 
+#ifdef EFL_EO_API_SUPPORT
 #include "elm_widget_item.eo.h"
+#endif
+#ifndef EFL_NOLEGACY_API_SUPPORT
 #include "elm_widget_item.eo.legacy.h"
+#endif
 
 #define elm_object_item_content_set(it, content) 
elm_object_item_part_content_set((it), NULL, (content))
 

-- 


Reply via email to