From: Stefan Schmidt Date: Wed, 3 Aug 2016 11:46:55 +0000 (+0200) Subject: elm: fileselector: add guards to include eo and legacy header only when allowed X-Git-Tag: upstream/1.20.0~4951 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fea0c92bc98bd9b2ce85d84f1163200a7b39f830;p=platform%2Fupstream%2Fefl.git elm: fileselector: 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. --- diff --git a/src/lib/elementary/elm_interface_fileselector.h b/src/lib/elementary/elm_interface_fileselector.h index e1c3bc7..98e4ba5 100644 --- a/src/lib/elementary/elm_interface_fileselector.h +++ b/src/lib/elementary/elm_interface_fileselector.h @@ -1,7 +1,12 @@ #ifndef ELM_INTEFARCE_FILESELECTOR_H #define ELM_INTEFARCE_FILESELECTOR_H +#ifdef EFL_EO_API_SUPPORT #include "elm_interface_fileselector.eo.h" +#endif +#ifndef EFL_NOLEGACY_API_SUPPORT +#include "elm_interface_fileselector.eo.legacy.h" +#endif #define ELM_FILESELECTOR_INTERFACE_CHECK(obj, ...) \ if (EINA_UNLIKELY(!eo_isa(obj, ELM_INTERFACE_FILESELECTOR_INTERFACE))) \