summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-08-03 13:46:55 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-08-03 15:03:37 +0200
commitfea0c92bc98bd9b2ce85d84f1163200a7b39f830 (patch)
treead6bbfb84f5ff3b03a52c95111ed998749e1b35a /src
parente4c641ed1e5607651e2d43a832e7cc01471f3fd6 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/elm_interface_fileselector.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_interface_fileselector.h b/src/lib/elementary/elm_interface_fileselector.h
index e1c3bc77d2..98e4ba51f9 100644
--- a/src/lib/elementary/elm_interface_fileselector.h
+++ b/src/lib/elementary/elm_interface_fileselector.h
@@ -1,7 +1,12 @@
1#ifndef ELM_INTEFARCE_FILESELECTOR_H 1#ifndef ELM_INTEFARCE_FILESELECTOR_H
2#define ELM_INTEFARCE_FILESELECTOR_H 2#define ELM_INTEFARCE_FILESELECTOR_H
3 3
4#ifdef EFL_EO_API_SUPPORT
4#include "elm_interface_fileselector.eo.h" 5#include "elm_interface_fileselector.eo.h"
6#endif
7#ifndef EFL_NOLEGACY_API_SUPPORT
8#include "elm_interface_fileselector.eo.legacy.h"
9#endif
5 10
6#define ELM_FILESELECTOR_INTERFACE_CHECK(obj, ...) \ 11#define ELM_FILESELECTOR_INTERFACE_CHECK(obj, ...) \
7 if (EINA_UNLIKELY(!eo_isa(obj, ELM_INTERFACE_FILESELECTOR_INTERFACE))) \ 12 if (EINA_UNLIKELY(!eo_isa(obj, ELM_INTERFACE_FILESELECTOR_INTERFACE))) \