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.
This commit is contained in:
Stefan Schmidt 2016-07-28 16:52:25 +02:00
parent f9ff0cd6dd
commit 61edc87787
1 changed files with 4 additions and 0 deletions

View File

@ -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))