aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-07-28 16:50:12 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-07-29 12:04:13 +0200
commitf9ff0cd6dd0bc79e3fe0d0b88c98b9ad4e6ef519 (patch)
tree8cc1aba039e9347727c1b6dc9d820ff21da06e47
parenteldbus: make sure eldbus model is hidden behind the BETA API flag (diff)
downloadefl-f9ff0cd6dd0bc79e3fe0d0b88c98b9ad4e6ef519.tar.gz
elm: sys_notify: add guards to inlcude eo and legacy header only when allowed
Make sure the eo and legacy headers arte onl yincluded when the matching defines are enabled.
-rw-r--r--src/lib/elementary/elm_sys_notify.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_sys_notify.h b/src/lib/elementary/elm_sys_notify.h
index 4534838ca7..30f5c9bb16 100644
--- a/src/lib/elementary/elm_sys_notify.h
+++ b/src/lib/elementary/elm_sys_notify.h
@@ -3,10 +3,14 @@
typedef void (*Elm_Sys_Notify_Send_Cb)(void *data, unsigned int id);
+#ifdef EFL_EO_API_SUPPORT
#include "elm_sys_notify_interface.eo.h"
-#include "elm_sys_notify_interface.eo.legacy.h"
#include "elm_sys_notify.eo.h"
+#endif
+#ifndef EFL_NOLEGACY_API_SUPPORT
+#include "elm_sys_notify_interface.eo.legacy.h"
#include "elm_sys_notify.eo.legacy.h"
+#endif
/**
* Emitted when the signal NotificationClosed is received.