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.
This commit is contained in:
Stefan Schmidt 2016-08-03 13:46:55 +02:00
parent e4c641ed1e
commit fea0c92bc9
1 changed files with 5 additions and 0 deletions

View File

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